(t, methodName)
| 69 | test('.readable() uses stderr if "all" is used', testReadableDefault, 2, 'all', {all: true}, true); |
| 70 | |
| 71 | const testBuffering = async (t, methodName) => { |
| 72 | const subprocess = execa('noop-stdin-fd.js', ['1'], {buffer: false}); |
| 73 | const stream = subprocess[methodName](); |
| 74 | |
| 75 | subprocess.stdin.write(foobarString); |
| 76 | await once(subprocess.stdout, 'readable'); |
| 77 | subprocess.stdin.end(); |
| 78 | |
| 79 | await assertStreamOutput(t, stream); |
| 80 | }; |
| 81 | |
| 82 | test('.readable() buffers until read', testBuffering, 'readable'); |
| 83 | test('.duplex() buffers until read', testBuffering, 'duplex'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…