Documentation
¶
Overview ¶
Package assert implements assertions for the standard testing package.
Index ¶
- func AsErr[T Param](t TB, err error, target any, formatAndArgs ...any)
- func Equal[T Param, V any](t TB, got, want V, formatAndArgs ...any)
- func IsErr[T Param](t TB, err, target error, formatAndArgs ...any)
- func NoErr[T Param](t TB, err error, formatAndArgs ...any)
- func Panics[T Param](t TB, fn func(), v any, formatAndArgs ...any)
- type E
- type F
- type Param
- type TB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type E ¶
type E struct{}
E is a Param that marks the test as failed but continues execution (similar to testing.T.Errorf).
type F ¶
type F struct{}
F is a Param that marks the test as failed and stops execution (similar to testing.T.Fatalf).
Click to show internal directories.
Click to hide internal directories.