MCPcopy Create free account
hub / github.com/exercism/cli / newCapturedOutput

Function newCapturedOutput

cmd/cmd_test.go:105–112  ·  view source on GitHub ↗

newCapturedOutput creates a new value to override the streams.

()

Source from the content-addressed store, hash-verified

103
104// newCapturedOutput creates a new value to override the streams.
105func newCapturedOutput() capturedOutput {
106 return capturedOutput{
107 oldOut: Out,
108 oldErr: Err,
109 newOut: io.Discard,
110 newErr: io.Discard,
111 }
112}
113
114// override sets the package variables to the fake streams.
115func (co capturedOutput) override() {

Calls

no outgoing calls

Tested by

no test coverage detected