require

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 11 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 interface{},
	msg ...interface{},
)

Equal asserts expected and actual are equal.

func Error

func Error(t *testing.T, err error, msg ...interface{})

Error asserts err is an error.

func Fail

func Fail(t *testing.T, msg ...interface{})

Fail marks the function as having failed but continues execution.

func False

func False(t *testing.T, v bool, msg ...interface{})

False asserts vis false.

func IsType

func IsType(
	t *testing.T,
	expected, actual interface{},
	msg ...interface{},
)

IsType asserts expected and actual are of the same type.

func Nil

func Nil(t *testing.T, v interface{}, msg ...interface{})

Nil asserts v is nil.

func NoError

func NoError(t *testing.T, err error, msg ...interface{})

NoError asserts err is not an error.

func NotNil

func NotNil(t *testing.T, v interface{}, msg ...interface{})

NotNil asserts v is not nil.

func True

func True(t *testing.T, v bool, msg ...interface{})

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