Documentation
¶
Index ¶
- Constants
- func Bigger[T constraints.Ordered](a, b T, callback Callback, t *testing.T) bool
- func Equal[T comparable](a, b T, callback Callback, t *testing.T) bool
- func EqualBytes(a, b []byte, callback Callback, t *testing.T) bool
- func EqualDeep(a, b any, callback Callback, t *testing.T) bool
- func EqualError(a, b error, callback Callback, t *testing.T) bool
- func Format(msg string, msgAndArgs ...any) string
- func Lesser[T constraints.Ordered](a, b T, callback Callback, t *testing.T) bool
- func SameTime(a, b time.Time, delta time.Duration, callback Callback, t *testing.T) bool
- type Callback
Constants ¶
View Source
const MsgSep = ": "
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal[T comparable](a, b T, callback Callback, t *testing.T) bool
Equal invariant will call callback if two compared variables are not equal.
func EqualBytes ¶
EqualBytes invariant will call callback if two byte slices are not equal.
func EqualError ¶
EqualError invariant will call callback if two errors are not equal.
Types ¶
Click to show internal directories.
Click to hide internal directories.