Documentation ¶
Overview ¶
Package test provides some simple assertion functions to simplify unit tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assert ¶
func Assert(t testingTB, cond bool, val ...interface{})
Assert asserts that the given boolean value is true. If cond is false, the optional values will be passed to the testing.TB.Fatal function.
func Assertf ¶
Assertf asserts that the given boolean value is true. If cond is false, the format and the optional values will be passed to the testing.TB.Fatal function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.