MCPcopy Index your code
hub / github.com/nodejs/node / testPipeToWithWritevWriter

Function testPipeToWithWritevWriter

test/parallel/test-stream-iter-pipeto.js:170–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168
169// PipeTo with writev writer
170async 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
181async function testPipeToSyncFallback() {

Callers 1

Calls 2

pipeToFunction · 0.85
fromFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…