package
Version:
v0.0.0-...-238d7d8
Opens a new window with list of versions in this module.
Published: Jul 22, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Equal(t *testing.T, exp, got interface{})
-
func Equali(t *testing.T, msg string, exp, got interface{})
-
func False(t *testing.T, got bool)
-
func Falsei(t *testing.T, msg string, got bool)
-
func Match(t *testing.T, regex string, got string)
-
func Matchi(t *testing.T, msg string, regex string, got string)
-
func Nil(t *testing.T, got interface{})
-
func Nili(t *testing.T, msg string, got interface{})
-
func NoPanic(t *testing.T, fn func())
-
func NoPanici(t *testing.T, msg string, fn func())
-
func NotEqual(t *testing.T, exp, got interface{})
-
func NotEquali(t *testing.T, msg string, exp, got interface{})
-
func NotMatch(t *testing.T, regex string, got string)
-
func NotMatchi(t *testing.T, msg string, regex string, got string)
-
func NotNil(t *testing.T, got interface{})
-
func NotNili(t *testing.T, msg string, got interface{})
-
func Panic(t *testing.T, fn func())
-
func Panici(t *testing.T, msg string, fn func())
-
func True(t *testing.T, got bool)
-
func Truei(t *testing.T, msg string, got bool)
func Equal(t *testing.T, exp, got interface{})
Equal is used to check if exp equals to got.
Equali is same with Equal but a need msg to express your intention.
False is used to check the got be false.
Falsei is same with False but a need msg to express your intention.
Match is used to check the got is match to the regular expression of exp.
Matchi is same with Match but a need msg to express your intention.
Nil expect the got be nil.
Nili is same with NotMatch but a need msg to express your intention.
NoPanic is used to check the fn should not give a panic.
NoPanici is same with NoPanic but a need msg to express your intention.
func NotEqual(t *testing.T, exp, got interface{})
NotEqual is used to check if exp is not equals to got
NotEquali is same with NotEqual but a need msg to express your intention.
NotMatch is used to check the got be not matched with exp.
NotMatchi is same with NotMatch but a need msg to express your intention.
func NotNil(t *testing.T, got interface{})
NotNil expect the got be not nil.
NotNili is same with NotNil but a need msg to express your intention.
Panic is used to check the fn should give a panic.
Panici is same with Panic but a need msg to express your intention.
True is used to check the got be true.
Truei is same with True but a need msg to express your intention.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.