override sets the package variables to the fake streams.
()
| 113 | |
| 114 | // override sets the package variables to the fake streams. |
| 115 | func (co capturedOutput) override() { |
| 116 | Out = co.newOut |
| 117 | Err = co.newErr |
| 118 | } |
| 119 | |
| 120 | // reset puts back the original streams for the commands to write to. |
| 121 | func (co capturedOutput) reset() { |
no outgoing calls
no test coverage detected