Documentation ¶
Overview ¶
Package gentest provides internal test utilities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureOutput ¶
CaptureOutput captures the standard logger to the passed writer and returns a rollback function. Typical usage:
var buf bytes.Buffer defer gentest.CaptureOutput(&buf)()
func DiscardOutput ¶
func DiscardOutput() func()
DiscardOutput discards the standard logger and returns a rollback function.
Typical usage:
defer gentest.DiscardOutput()()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.