Documentation
¶
Index ¶
- func Bigger[T constraints.Ordered](t *testing.T, a, b T, msgAndArgs ...any)
- func Equal[T comparable](t *testing.T, a, b T, msgAndArgs ...any)
- func EqualBytes(t *testing.T, a, b []byte, msgAndArgs ...any)
- func EqualDeep(t *testing.T, a, b any, msgAndArgs ...any)
- func EqualError(t *testing.T, a, b error, msgAndArgs ...any)
- func Lesser[T constraints.Ordered](t *testing.T, a, b T, msgAndArgs ...any)
- func SameTime(t *testing.T, a, b time.Time, delta time.Duration, msgAndArgs ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bigger ¶
func Bigger[T constraints.Ordered](t *testing.T, a, b T, msgAndArgs ...any)
Bigger invariant will call t.Error() if a is lesser than b.
func Equal ¶
func Equal[T comparable](t *testing.T, a, b T, msgAndArgs ...any)
Equal invariant will call t.Error() if two compared variables are not equal.
func EqualBytes ¶
EqualBytes invariant will call t.Error() if two byte slices are not equal.
func EqualError ¶
EqualError invariant will call t.Error() if two errors are not equal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.