assert

package
v0.0.0-...-238d7d8 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, exp, got interface{})

Equal is used to check if exp equals to got.

func Equali

func Equali(t *testing.T, msg string, exp, got interface{})

Equali is same with Equal but a need msg to express your intention.

func False

func False(t *testing.T, got bool)

False is used to check the got be false.

func Falsei

func Falsei(t *testing.T, msg string, got bool)

Falsei is same with False but a need msg to express your intention.

func Match

func Match(t *testing.T, regex string, got string)

Match is used to check the got is match to the regular expression of exp.

func Matchi

func Matchi(t *testing.T, msg string, regex string, got string)

Matchi is same with Match but a need msg to express your intention.

func Nil

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

Nil expect the got be nil.

func Nili

func Nili(t *testing.T, msg string, got interface{})

Nili is same with NotMatch but a need msg to express your intention.

func NoPanic

func NoPanic(t *testing.T, fn func())

NoPanic is used to check the fn should not give a panic.

func NoPanici

func NoPanici(t *testing.T, msg string, fn func())

NoPanici is same with NoPanic but a need msg to express your intention.

func NotEqual

func NotEqual(t *testing.T, exp, got interface{})

NotEqual is used to check if exp is not equals to got

func NotEquali

func NotEquali(t *testing.T, msg string, exp, got interface{})

NotEquali is same with NotEqual but a need msg to express your intention.

func NotMatch

func NotMatch(t *testing.T, regex string, got string)

NotMatch is used to check the got be not matched with exp.

func NotMatchi

func NotMatchi(t *testing.T, msg string, regex string, got string)

NotMatchi is same with NotMatch but a need msg to express your intention.

func NotNil

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

NotNil expect the got be not nil.

func NotNili

func NotNili(t *testing.T, msg string, got interface{})

NotNili is same with NotNil but a need msg to express your intention.

func Panic

func Panic(t *testing.T, fn func())

Panic is used to check the fn should give a panic.

func Panici

func Panici(t *testing.T, msg string, fn func())

Panici is same with Panic but a need msg to express your intention.

func True

func True(t *testing.T, got bool)

True is used to check the got be true.

func Truei

func Truei(t *testing.T, msg string, got bool)

Truei is same with True but a need msg to express your intention.

Types

This section is empty.

Jump to

Keyboard shortcuts

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