...

Text file src/github.com/dsoprea/go-utility/v2/testing/README.md

Documentation: github.com/dsoprea/go-utility/v2/testing

     1[![GoDoc](https://godoc.org/github.com/dsoprea/go-utility/testing?status.svg)](https://godoc.org/github.com/dsoprea/go-utility/testing)
     2[![Build Status](https://travis-ci.org/dsoprea/go-utility.svg?branch=master)](https://travis-ci.org/dsoprea/go-utility)
     3[![Coverage Status](https://coveralls.io/repos/github/dsoprea/go-utility/badge.svg?branch=master)](https://coveralls.io/github/dsoprea/go-utility?branch=master)
     4[![Go Report Card](https://goreportcard.com/badge/github.com/dsoprea/go-utility)](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