Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdout ¶
func CaptureStdout(f func()) string
Capture the output of the go program while running function f
Source https://gist.github.com/mindscratch/0faa78bd3c0005d080bf
func DisableTestMode ¶
func DisableTestMode()
Disable test mode behavior again
Optional after testing has been done
func EnableTestMode ¶
func EnableTestMode()
Enable test mode by disabling the default exit behavior, so go test won't fail with plugin states
func RunMainTest ¶
Execute main function from a main package, while capturing its stdout
You will need to pass `main`, since the function won't have access to the package's namespace
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.