...
1[](https://godoc.org/github.com/dsoprea/go-utility/testing)
2[](https://travis-ci.org/dsoprea/go-utility)
3[](https://coveralls.io/github/dsoprea/go-utility?branch=master)
4[](https://goreportcard.com/report/github.com/dsoprea/go-utility)
5
6# redirect_tty
7
8This will temporarily redirect the process TTY resources to support writing
9unit-tests directly against `main()` functions.
10
11# handled_exit
12
13Can switch between `os.Exit()` and panicing a return-code. Supports testing
14`main()`. Requires calls to `os.Exit()` to call `Exit()` here instead.
View as plain text