test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arbiter

type Arbiter struct {
	// contains filtered or unexported fields
}

func NewArbiter

func NewArbiter(t *testing.T) *Arbiter

func (*Arbiter) ErrorHappened

func (a *Arbiter) ErrorHappened(err error)

func (*Arbiter) Errors

func (a *Arbiter) Errors() []error

func (*Arbiter) EvCount

func (a *Arbiter) EvCount() map[string]int

func (*Arbiter) ItsAFactThat

func (a *Arbiter) ItsAFactThat(event string)

func (*Arbiter) RequireError

func (a *Arbiter) RequireError(errMsg string)

func (*Arbiter) RequireErrorIs

func (a *Arbiter) RequireErrorIs(err error)

func (*Arbiter) RequireHappened

func (a *Arbiter) RequireHappened(event string) *Arbiter

func (*Arbiter) RequireHappenedInOrder

func (a *Arbiter) RequireHappenedInOrder(events ...string) *Arbiter

func (*Arbiter) RequireHappenedTimes

func (a *Arbiter) RequireHappenedTimes(event string, expectedCount int) *Arbiter

func (*Arbiter) RequireNoErrors

func (a *Arbiter) RequireNoErrors()

func (*Arbiter) RequireNoEvents

func (a *Arbiter) RequireNoEvents()

func (*Arbiter) RequireNotHappened added in v0.2.0

func (a *Arbiter) RequireNotHappened(event string) *Arbiter

Jump to

Keyboard shortcuts

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