()
| 168 | |
| 169 | // PipeTo with writev writer |
| 170 | async function testPipeToWithWritevWriter() { |
| 171 | const allChunks = []; |
| 172 | const writer = { |
| 173 | write(chunk) { allChunks.push(chunk); }, |
| 174 | writev(chunks) { allChunks.push(...chunks); }, |
| 175 | }; |
| 176 | await pipeTo(from('hello world'), writer); |
| 177 | assert.strictEqual(allChunks.length > 0, true); |
| 178 | } |
| 179 | |
| 180 | // PipeTo with writeSync/writevSync fallback |
| 181 | async function testPipeToSyncFallback() { |
no test coverage detected
searching dependent graphs…