eventrequire

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: 3 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{})

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

func RecordedLen

func RecordedLen(t require.TestingT, recorder events.Recorder, event interface{}, length int, msgAndArgs ...interface{})

RecordedLen asserts that the given Recorder object has recorded the specified event type the specified number of times.

func SequenceWasRecorded

func SequenceWasRecorded(t require.TestingT, recorder events.Recorder, sequence []interface{}, msgAndArgs ...interface{})

SequenceWasRecorded asserts that the given sequence of events was recorded.

func WasNotRecorded

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

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

func WasRecorded added in v0.0.4

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

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