assert

package
v1.14.1 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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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