Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunFn ¶
type RunFn func(t *T)
RunFn performs a single iteration of the test. It may be used for asserting results or failing the test.
type ScenarioFn ¶ added in v1.0.21
ScenarioFn initialises a scenario and returns the iteration function (RunFn) to be invoked for every iteration of the tests.
type T ¶
type T struct {
// "iteration " + iteration number or "setup"
Iteration string
// Logger with user and iteration tags
Log *log.Logger
Require *require.Assertions
Scenario string
// contains filtered or unexported fields
}
func (*T) Cleanup ¶ added in v1.0.21
func (t *T) Cleanup(f func())
Cleanup registers a teardown function to be called when T has completed
func (*T) FailWithError ¶ added in v1.0.17
Click to show internal directories.
Click to hide internal directories.