(t, fdNumber)
| 150 | test('stdio[*] can be a Node.js Writable with a file descriptor - sync', testFileWritable, 3, execaSync); |
| 151 | |
| 152 | const testFileWritableError = async (t, fdNumber) => { |
| 153 | const {stream, filePath} = await createFileWriteStream(); |
| 154 | |
| 155 | const subprocess = execa('noop-fd.js', [`${fdNumber}`, foobarString], getStdio(fdNumber, stream)); |
| 156 | |
| 157 | await assertFileStreamError(t, subprocess, stream, filePath); |
| 158 | }; |
| 159 | |
| 160 | test.serial('stdout handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 1); |
| 161 | test.serial('stderr handles errors from a Node.js Writable with a file descriptor', testFileWritableError, 2); |
nothing calls this directly
no test coverage detected