(t, fdNumber, from, options, hasResult)
| 50 | |
| 51 | // eslint-disable-next-line max-params |
| 52 | const testReadableDefault = async (t, fdNumber, from, options, hasResult) => { |
| 53 | const subprocess = execa('noop-fd.js', [`${fdNumber}`, foobarString], options); |
| 54 | const stream = subprocess.readable({from}); |
| 55 | |
| 56 | await assertStreamOutput(t, stream, hasResult ? foobarString : ''); |
| 57 | await assertSubprocessOutput(t, subprocess, foobarString, fdNumber); |
| 58 | }; |
| 59 | |
| 60 | test('.readable() can use stdout', testReadableDefault, 1, 'stdout', {}, true); |
| 61 | test('.readable() can use stderr', testReadableDefault, 2, 'stderr', {}, true); |
nothing calls this directly
no test coverage detected
searching dependent graphs…