Documentation ¶
Overview ¶
Package failfast provides a utility to track test failures and fail fast.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter counts test failures and aborts test execution if it passes a given threshold. nil is a valid Counter that never aborts test execution just as if it has infinite threshold.
func NewCounter ¶
NewCounter constructs a Counter. If threshold is not positive, it returns nil, which is a valid Counter that never aborts test execution just as if it has infinite threshold.
Click to show internal directories.
Click to hide internal directories.