Documentation
¶
Overview ¶
Package asserting provides macros to verify output, well-suited for use in `go test`
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assertion ¶
type Assertion func(TestController, bool, ...interface{})
Assertion provides a function to assert results and recover from functions triggering panic
func (Assertion) Panic ¶
func (assert Assertion) Panic(t TestController, do func())
Panic asserts that the provided function triggers panic
func (Assertion) PanicMsg ¶
func (assert Assertion) PanicMsg(t TestController, do func(), assertMsg func(interface{}) bool)
PanicMsg asserts that the provided function triggers panic with the provided message
type TestController ¶
type TestController interface { Helper() Errorf(format string, args ...interface{}) }
TestController provides functionality to interrupt and log during a test execution. It's usually `testing.T`
Click to show internal directories.
Click to hide internal directories.