()
| 189 | } |
| 190 | |
| 191 | func (co *capturedOutput) Done() (stdout []byte, stderr []byte) { |
| 192 | // we need to close writers for readers to stop |
| 193 | _ = co.stdoutWriter.Close() |
| 194 | _ = co.stderrWriter.Close() |
| 195 | |
| 196 | co.wg.Wait() |
| 197 | |
| 198 | return co.stdoutBuf.Bytes(), co.stderrBuf.Bytes() |
| 199 | } |
| 200 | |
| 201 | func TestExpandEnv(t *testing.T) { |
| 202 | var tests = []struct { |
no test coverage detected