(t, subprocess, stream, filePath)
| 73 | }; |
| 74 | |
| 75 | const assertFileStreamError = async (t, subprocess, stream, filePath) => { |
| 76 | const cause = new Error('test'); |
| 77 | stream.destroy(cause); |
| 78 | |
| 79 | const error = await t.throwsAsync(subprocess); |
| 80 | t.is(error.cause, cause); |
| 81 | t.is(error.exitCode, 0); |
| 82 | t.is(error.signal, undefined); |
| 83 | |
| 84 | await rm(filePath); |
| 85 | }; |
| 86 | |
| 87 | const testFileReadable = async (t, fdNumber, execaMethod) => { |
| 88 | const {stream, filePath} = await createFileReadStream(); |
no outgoing calls
no test coverage detected