assert

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: MIT Imports: 12 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{}) bool

Equal asserts expected and actual are equal.

func Error

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

Error asserts err is an error.

func Fail

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

Fail marks the function as having failed but continues execution.

func False

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

False asserts vis false.

func IsType

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

IsType asserts expected and actual are of the same type.

func Nil

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

Nil asserts v is nil.

func NoError

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

NoError asserts err is not an error.

func NotNil

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

NotNil asserts v is not nil.

func True

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

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