test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqualEvents

func AssertEqualEvents(t *testing.T, events ...[]event.Event)

AssertEqualEvents compares slices of events and reports an error to testing.T if they don't match.

func AssertEqualEventsUnsorted

func AssertEqualEventsUnsorted(t *testing.T, events ...[]event.Event)

AssertEqualEventsUnsorted does the same as AssertEqualEvents but ignores the order of the events.

func EqualEvents

func EqualEvents(events ...[]event.Event) bool

EqualEvents compares slices of Events.

func NewEncoder

func NewEncoder() *codec.Registry

NewEncoder returns a "gob" event.Encoder with registered "foo", "bar" and "baz" events.

Types

type BarEventData

type BarEventData struct{ A string }

BarEventData is a testing event data.

type BazEventData

type BazEventData struct{ A string }

BazEventData is a testing event data.

type FooEventData

type FooEventData struct{ A string }

FooEventData is a testing event data.

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.

Jump to

Keyboard shortcuts

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