(methodName, output, options)
| 42 | const foobarObjectChunks = [foobarObject, foobarObject, foobarObject]; |
| 43 | |
| 44 | const getSubprocess = (methodName, output, options) => { |
| 45 | if (methodName !== 'duplex') { |
| 46 | return getReadableSubprocess(output, options); |
| 47 | } |
| 48 | |
| 49 | const subprocess = getReadWriteSubprocess(options); |
| 50 | subprocess.stdin.end(output); |
| 51 | return subprocess; |
| 52 | }; |
| 53 | |
| 54 | const assertChunks = async (t, streamOrIterable, expectedChunks, methodName) => { |
| 55 | const assertMethod = methodName === 'iterable' ? assertIterableChunks : assertStreamChunks; |
no test coverage detected
searching dependent graphs…