Documentation
¶
Index ¶
- func All(checks ...error) error
- func BytesEqual(what string, got, want []byte) error
- func Each[T any](label string, items []T, check func(T) error) error
- func Equal[T comparable](what string, got, want T) error
- func ErrIs(what string, got, want error) error
- func False(what string, cond bool) error
- func Len[T any](what string, got []T, want int) error
- func NoErr(what string, err error) error
- func NotEqual[T comparable](what string, got, unwanted T) error
- func Steps(checks ...func() error) error
- func True(what string, cond bool) error
- func WantErr(what string, err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
All reports every failed check, one per line. Use this by default. Arguments are evaluated before the call. Use Steps if a later check reads data that an earlier check proved valid.
func BytesEqual ¶
BytesEqual reports a length summary, not the payload. Test payloads are large and dumping them hides the failure.
func Equal ¶
func Equal[T comparable](what string, got, want T) error
func NotEqual ¶
func NotEqual[T comparable](what string, got, unwanted T) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.