(t, stdioOption, isSync)
| 58 | test('stdio[*] output can be [3, "pipe"], encoding "buffer", sync', testInheritStdioOutput, 3, 1, [3, 'pipe'], true, 'buffer'); |
| 59 | |
| 60 | const testInheritNoBuffer = async (t, stdioOption, isSync) => { |
| 61 | const filePath = tempfile(); |
| 62 | await nestedSubprocess('nested-write.js', [filePath, foobarString], {stdin: stdioOption, buffer: false, isSync}, {input: foobarString}); |
| 63 | t.is(await readFile(filePath, 'utf8'), `${foobarString} ${foobarString}`); |
| 64 | await rm(filePath); |
| 65 | }; |
| 66 | |
| 67 | test('stdin can be ["inherit", "pipe"], buffer: false', testInheritNoBuffer, ['inherit', 'pipe'], false); |
| 68 | test('stdin can be [0, "pipe"], buffer: false', testInheritNoBuffer, [0, 'pipe'], false); |
nothing calls this directly
no test coverage detected
searching dependent graphs…