A pipeRWC is an io.ReadWriteCloser that communicates with a subprocess over stdin/stdout pipes.
| 49 | // A pipeRWC is an io.ReadWriteCloser that communicates with a subprocess over |
| 50 | // stdin/stdout pipes. |
| 51 | type pipeRWC struct { |
| 52 | cmd *exec.Cmd |
| 53 | stdout io.ReadCloser |
| 54 | stdin io.WriteCloser |
| 55 | terminateDuration time.Duration |
| 56 | } |
| 57 | |
| 58 | func (s *pipeRWC) Read(p []byte) (n int, err error) { |
| 59 | return s.stdout.Read(p) |
nothing calls this directly
no outgoing calls
no test coverage detected