test

package
v0.0.0-...-59daaa4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEvents

func AssertEvents(t *testing.T, events chan lu.Event, constraints ...EventConstraint)

Types

type ConstraintFunc

type ConstraintFunc func(t *testing.T, e lu.Event) bool

func (ConstraintFunc) CheckMore

func (f ConstraintFunc) CheckMore(t *testing.T, got lu.Event) bool

type Event

type Event lu.Event

func (Event) CheckMore

func (e Event) CheckMore(t *testing.T, got lu.Event) bool

type EventConstraint

type EventConstraint interface {
	CheckMore(t *testing.T, e lu.Event) bool
}

func AnyOrder

func AnyOrder(events ...Event) EventConstraint

type EventLog

type EventLog chan lu.Event

func (EventLog) Append

func (l EventLog) Append(_ context.Context, e lu.Event)

Jump to

Keyboard shortcuts

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