package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Jan 20, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-test
miniature test helpers for assertion
Documentation
¶
Assert fails the test if the condition is false.
func Equals(tb testing.TB, exp, act interface{})
Equals fails the test if exp is not equal to act.
Ok fails the test if an err is not nil.
func OkEquals(tb testing.TB, exp interface{}) func(act interface{}, err error)
OkEquals return an asserter that fails if error not is nil or the value doesn't equal what was expected
Source Files
¶
Click to show internal directories.
Click to hide internal directories.