require

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

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

Equal asserts expected and actual are equal.

func Error

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

Error asserts err is an error.

func Fail

func Fail(t *testing.T, msg ...any)

Fail marks the function as having failed but continues execution.

func False

func False(t *testing.T, v bool, msg ...any)

False asserts vis false.

func IsType

func IsType(t *testing.T, e, a any, msg ...any)

IsType asserts expected and actual are of the same type.

func Nil

func Nil(t *testing.T, v any, msg ...any)

Nil asserts v is nil.

func NoError

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

NoError asserts err is not an error.

func NotNil

func NotNil(t *testing.T, v any, msg ...any)

NotNil asserts v is not nil.

func True

func True(t *testing.T, v bool, msg ...any)

True asserts v is true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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