Documentation ¶
Index ¶
- func AssertEqualEvents[Events ~[]event.Of[D], D any](t *testing.T, events ...Events)
- func AssertEqualEventsUnsorted[Events ~[]event.Of[D], D any](t *testing.T, events ...Events)
- func EqualEvents[Events ~[]event.Of[D], D any](events ...Events) bool
- func NewEncoder() *codec.Registry
- type BarEventData
- type BazEventData
- type FooEventData
- type FoobarEventData
- type UnregisteredEventData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqualEvents ¶
AssertEqualEvents compares slices of events and reports an error to testing.T if they don't match.
func AssertEqualEventsUnsorted ¶
AssertEqualEventsUnsorted does the same as AssertEqualEvents but ignores the order of the events.
func EqualEvents ¶
EqualEvents compares slices of events.
func NewEncoder ¶
Types ¶
type FoobarEventData ¶
type FoobarEventData struct{ A int }
FoobarEventData is a testing event data.
type UnregisteredEventData ¶
type UnregisteredEventData struct{ A string }
UnregisteredEventData is a testing event data that's not registered in the Encoder returned by NewEncoder.
Click to show internal directories.
Click to hide internal directories.