package
Version:
v0.0.0-...-3c1fd5d
Opens a new window with list of versions in this module.
Published: Apr 29, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Bigger[T constraints.Ordered](a, b T, t *testing.T)
-
func Equal[T comparable](a, b T, t *testing.T)
-
func EqualBytes(a, b []byte, t *testing.T)
-
func EqualDeep(a, b interface{}, t *testing.T)
-
func EqualError(a, b error, t *testing.T)
-
func Lesser[T constraints.Ordered](a, b T, t *testing.T)
Bigger invariant will call t.Fatal() if a is lesser than b.
Equal invariant will call t.Fatal() if two compared variables are not equal.
EqualBytes invariant will call t.Fatal() if two byte slices are not equal.
func EqualDeep(a, b interface{}, t *testing.T)
EqualDeep invariant will call t.Fatal() if two variables are not deep equal.
EqualError invariant will call t.Fatal() if two errors are not equal.
Lesser invariant will call t.Fatal() if a is bigger than b.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.