Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Test ¶
Test has test helpers
func (*Test) Exits ¶
func (t *Test) Exits(f func())
Exits asserts that the function passed as parameter exits with an unsuccessful code to test functions with commands or that returns values, you can do this: tests.AssertExits(t func() { funcWithArgs(a, b) }) TODO: Coverage
func (*Test) FreePort ¶
FreePort returns a free port to listen to https://github.com/phayes/freeport
Click to show internal directories.
Click to hide internal directories.