assert

package
v0.0.0-...-eb772cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bigger

func Bigger[T constraints.Ordered](a, b T, t *testing.T)

Bigger invariant will call t.Error() if a is lesser than b.

func Equal

func Equal[T comparable](a, b T, t *testing.T)

Equal invariant will call t.Error() if two compared variables are not equal.

func EqualBytes

func EqualBytes(a, b []byte, t *testing.T)

EqualBytes invariant will call t.Error() if two byte slices are not equal.

func EqualDeep

func EqualDeep(a, b interface{}, t *testing.T)

EqualDeep invariant will call t.Error() if two variables are not deep equal.

func EqualError

func EqualError(a, b error, t *testing.T)

EqualError invariant will call t.Error() if two errors are not equal.

func Lesser

func Lesser[T constraints.Ordered](a, b T, t *testing.T)

Lesser invariant will call t.Error() if a is bigger than b.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL