check

package
v0.0.0-...-883d5d7 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MPL-2.0 Imports: 7 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 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