assert

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](t *testing.T, arr []T, elem T, formatString string, args ...any) bool

func ContainsAll

func ContainsAll[T comparable](t *testing.T, arr []T, elems []T, formatString string, args ...any) bool

func Equal

func Equal[T comparable](t *testing.T, expected T, actual T, formatString string, args ...any) bool

func EqualArray

func EqualArray[T comparable](t *testing.T, expected, actual []T, formatString string, args ...any) bool

func EqualMap

func EqualMap[T, R comparable](t *testing.T, expected, actual map[T]R, formatString string, args ...any) bool

func False

func False(t *testing.T, actual bool, formatString string, args ...any) bool

func Greater

func Greater[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool

func GreaterOrEqual

func GreaterOrEqual[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool

func IsNil

func IsNil[T any](t *testing.T, actual *T, formatString string, args ...any) bool

func Less

func Less[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool

func LessOrEqual

func LessOrEqual[T constraints.Ordered](t *testing.T, expected T, actual T, formatString string, args ...any) bool

func NotContains

func NotContains[T comparable](t *testing.T, arr []T, elem T, formatString string, args ...any) bool

func NotEqual

func NotEqual[T comparable](t *testing.T, expected T, actual T, formatString string, args ...any) bool

func NotNil

func NotNil[T any](t *testing.T, actual *T, formatString string, args ...any) bool

func True

func True(t *testing.T, actual bool, formatString string, args ...any) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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