check

package
v0.0.0-...-98fa19b Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(t *testing.T, s, substr string, msgAndArgs ...any)

Contains expects s to contain substr.

func Equal

func Equal(t *testing.T, expected, actual any, msgAndArgs ...any)

Equal compares two values for equality.

func Error

func Error(t *testing.T, err error, msgAndArgs ...any)

Error expects err to not be nil.

func False

func False(t *testing.T, value bool, msgAndArgs ...any)

False expects value to be false.

func IsNil

func IsNil(i any) bool

IsNil returns true if the interface is nil or if the value it points to is nil.

func Nil

func Nil(t *testing.T, value any, msgAndArgs ...any)

Nil expects value to be nil.

func NoError

func NoError(t *testing.T, err error, msgAndArgs ...any)

NoError expects err to be nil.

func NotContains

func NotContains(t *testing.T, s, substr string, msgAndArgs ...any)

NotContains expects s not to contain substr.

func NotNil

func NotNil(t *testing.T, value any, msgAndArgs ...any)

NotNil expects value to not be nil.

func NotPanics

func NotPanics(t *testing.T, f func(), msgAndArgs ...any)

NotPanics expects no panic when f is called.

func Panics

func Panics(t *testing.T, f func(), msgAndArgs ...any)

Panics expects f to panic when called.

func True

func True(t *testing.T, value bool, msgAndArgs ...any)

True expects value to be true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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