eventassert

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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.

func WasNotRecorded

func WasNotRecorded(t assert.TestingT, recorder events.Recorder, event interface{}, msgAndArgs ...interface{}) bool

WasNotRecorded asserts that the given Recorder object has NOT recorded the specified event.

func WasRecorded

func WasRecorded(t assert.TestingT, recorder events.Recorder, event interface{}, msgAndArgs ...interface{}) bool

WasRecorded asserts that the given Recorder object has recorded the specified event type.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL