Documentation ¶
Index ¶
- func Condition(t require.TestingT, recorder events.Recorder, ...) bool
- func RecordedLen(t assert.TestingT, recorder events.Recorder, event interface{}, length int, ...) bool
- func SequenceWasRecorded(t assert.TestingT, recorder events.Recorder, sequence []interface{}, ...) bool
- func WasNotRecorded(t assert.TestingT, recorder events.Recorder, event interface{}, ...) bool
- func WasRecorded(t assert.TestingT, recorder events.Recorder, event interface{}, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Condition ¶ added in v0.0.5
func Condition(t require.TestingT, recorder events.Recorder, condition func(event interface{}) bool, msgAndArgs ...interface{}) bool
Condition asserts that the given Recorder object has recorded an event that matches the given condition.
The provided condition function will be called for each recorded event until it returns true.
func RecordedLen ¶
func RecordedLen(t assert.TestingT, recorder events.Recorder, event interface{}, length int, msgAndArgs ...interface{}) bool
RecordedLen asserts that the given Recorder object has recorded the specified event type the specified number of times.
func SequenceWasRecorded ¶
func SequenceWasRecorded(t assert.TestingT, recorder events.Recorder, sequence []interface{}, msgAndArgs ...interface{}) bool
SequenceWasRecorded asserts that the given sequence of events was recorded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.