assert

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsStr added in v1.0.3

func ContainsStr(t *testing.T, expected string, array []string, message string)

ContainsStr assert that an array contains an expected value

func Equal

func Equal(t *testing.T, expected interface{}, actual interface{}, message string)

Equal assert that an object is equal to an expected value

func Nil

func Nil(t *testing.T, actual interface{}, message string)

Nil assert that an object is nil

func NotEqual

func NotEqual(t *testing.T, expected interface{}, actual interface{}, message string)

NotEqual assert that an object is not equal to an expected value

func NotNil

func NotNil(t *testing.T, actual interface{}, message string)

NotNil assert that an object is not nil

func True

func True(t *testing.T, expression bool, message string)

True assert that an expression 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