Documentation ¶
Index ¶
- func Bigger[T constraints.Ordered](a, b T, callback Callback) bool
- func BiggerFn[T constraints.Ordered](fn func() T, r T, callback Callback) bool
- func Equal[T comparable](a, b T, callback Callback) bool
- func EqualBytes(a, b []byte, callback Callback) bool
- func EqualBytesFn(fn func() []byte, r []byte, callback Callback) bool
- func EqualDeep(a, b interface{}, callback Callback) bool
- func EqualDeepFn(fn func() interface{}, r interface{}, callback Callback) bool
- func EqualError(a, b error, callback Callback) bool
- func EqualErrorFn(fn func() error, r error, callback Callback) bool
- func EqualFn[T comparable](fn func() T, r T, callback Callback) bool
- func Lesser[T constraints.Ordered](a, b T, callback Callback) bool
- func LesserFn[T constraints.Ordered](fn func() T, r T, callback Callback) bool
- type Callback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bigger ¶
func Bigger[T constraints.Ordered](a, b T, callback Callback) bool
Bigger invariant will call callback if a is lesser than b.
func BiggerFn ¶
func BiggerFn[T constraints.Ordered](fn func() T, r T, callback Callback) bool
BiggerFn invariant will call callback if fn result is lesser than r.
func Equal ¶
func Equal[T comparable](a, b T, callback Callback) 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 EqualBytesFn ¶
EqualBytesFn invariant will call callback if fn result is not equal to r.
func EqualDeepFn ¶
EqualDeepFn invariant will call callback if fn result is not deep equal to r.
func EqualError ¶
EqualError invariant will call callback if two errors are not equal.
func EqualErrorFn ¶
EqualErrorFn invariant will call callback if fn result error is not equal to r.
func EqualFn ¶
func EqualFn[T comparable](fn func() T, r T, callback Callback) bool
EqualFn invariant will call callback if fn compared result is not equal to r.