(t, methodName)
| 44 | test('.duplex() requires listening to "error" event', testErrorEvent, 'duplex'); |
| 45 | |
| 46 | const testSubprocessError = async (t, methodName) => { |
| 47 | const subprocess = getReadWriteSubprocess(); |
| 48 | const stream = subprocess[methodName](); |
| 49 | const cause = new Error(foobarString); |
| 50 | subprocess.kill(cause); |
| 51 | await assertStreamError(t, stream, {cause}); |
| 52 | }; |
| 53 | |
| 54 | test('Do not need to await subprocess with .readable()', testSubprocessError, 'readable'); |
| 55 | test('Do not need to await subprocess with .writable()', testSubprocessError, 'writable'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…