Given this code
func doomed() { os.Exit(1) }
How do I properly test that calling this function will result in an exit using go test>
go test>
You can't, you would have to use exec.Command and test the returned value.
exec.Command