package
Version:
v1.12.0-rc5
Opens a new window with list of versions in this module.
Published: Jul 26, 2016
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
¶
Package assert contains functions for making assertions in unit tests
Contains asserts that the string contains a substring, otherwise it fails the
test.
func Equal(t TestingT, actual, expected interface{})
Equal compare the actual value to the expected value and fails the test if
they are not equal.
EqualStringSlice compares two slices and fails the test if they do not contain
the same items.
Error asserts that error is not nil, and contains the expected text,
otherwise it fails the test.
NilError asserts that the error is nil, otherwise it fails the test.
type TestingT interface {
Fatalf(string, ...interface{})
}
TestingT is an interface which defines the methods of testing.T that are
required by this package
Source Files
¶
Click to show internal directories.
Click to hide internal directories.