eventassert

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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