(t, methodName)
| 355 | }); |
| 356 | |
| 357 | const testBufferData = async (t, methodName) => { |
| 358 | const chunk = '.'.repeat(defaultHighWaterMark).repeat(2); |
| 359 | const subprocess = getReadWriteSubprocess(); |
| 360 | const stream = subprocess[methodName](); |
| 361 | subprocess.stdin.end(chunk); |
| 362 | |
| 363 | await assertStreamOutput(t, stream, chunk); |
| 364 | await assertSubprocessOutput(t, subprocess, chunk); |
| 365 | }; |
| 366 | |
| 367 | test('.readable() can buffer data', testBufferData, 'readable'); |
| 368 | test('.duplex() can buffer data', testBufferData, 'duplex'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…