# Functions
Capture the output of the go program while running function f
Source https://gist.github.com/mindscratch/0faa78bd3c0005d080bf.
Disable test mode behavior again
Optional after testing has been done.
Enable test mode by disabling the default exit behavior, so go test won't fail with plugin states.
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.