Documentation
¶
Overview ¶
Testing helper functions. It should not be seen in the imports outside of testing.
Index ¶
- func Assert(t *testing.T, title string, expect, actual interface{})
- func CapturePanics(fn func()) (e error)
- func Require(t *testing.T, actual interface{}, check Checker, desired interface{})
- func ShouldEqual(actual, desired interface{}) (string, bool)
- func Wish(t *testing.T, actual interface{}, check Checker, desired interface{}) bool
- type Checker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapturePanics ¶
func CapturePanics(fn func()) (e error)
func ShouldEqual ¶ added in v0.90.0
Types ¶
Click to show internal directories.
Click to hide internal directories.