With terminates the process by calling os.Exit(code). If the package is stubbed, it instead records a call in the testing spy.
(code int)
| 29 | // With terminates the process by calling os.Exit(code). If the package is |
| 30 | // stubbed, it instead records a call in the testing spy. |
| 31 | func With(code int) { |
| 32 | _exit(code) |
| 33 | } |
| 34 | |
| 35 | // A StubbedExit is a testing fake for os.Exit. |
| 36 | type StubbedExit struct { |