package
Version:
v1.5.2
Opens a new window with list of versions in this module.
Published: Aug 5, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Equal(tb testing.TB, expected interface{}, actual interface{}, ...)
-
func EqualOneOf(tb testing.TB, expecteds []interface{}, actual interface{}, ...)
-
func False(tb testing.TB, value bool, msgAndArgs ...interface{})
-
func Matches(tb testing.TB, expectedMatch string, actual string, msgAndArgs ...interface{})
-
func Nil(tb testing.TB, object interface{}, msgAndArgs ...interface{})
-
func NoError(tb testing.TB, err error, msgAndArgs ...interface{})
-
func NotEqual(tb testing.TB, expected interface{}, actual interface{}, ...)
-
func NotNil(tb testing.TB, object interface{}, msgAndArgs ...interface{})
-
func OneOfEquals(tb testing.TB, expected interface{}, actuals []interface{}, ...)
-
func True(tb testing.TB, value bool, msgAndArgs ...interface{})
-
func YesError(tb testing.TB, err error, msgAndArgs ...interface{})
func Equal(tb testing.TB, expected interface{}, actual interface{}, msgAndArgs ...interface{})
Equal checks equality of two values.
func EqualOneOf(tb testing.TB, expecteds []interface{}, actual interface{}, msgAndArgs ...interface{})
EqualOneOf checks if a value is equal to one of the elements of a slice.
False checks a value is false.
Matches checks that a string matches a regular-expression.
func Nil(tb testing.TB, object interface{}, msgAndArgs ...interface{})
Nil checks a value is nil.
NoError checks for no error.
func NotEqual(tb testing.TB, expected interface{}, actual interface{}, msgAndArgs ...interface{})
NotEqual checks inequality of two values.
func NotNil(tb testing.TB, object interface{}, msgAndArgs ...interface{})
NotNil checks a value is non-nil.
func OneOfEquals(tb testing.TB, expected interface{}, actuals []interface{}, msgAndArgs ...interface{})
OneOfEquals checks one element of a slice equals a value.
True checks a value is true.
YesError checks for an error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.