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

Function testPipeToSyncFallback

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

Source from the content-addressed store, hash-verified

179
180// PipeTo with writeSync/writevSync fallback
181async function testPipeToSyncFallback() {
182 const chunks = [];
183 const writer = {
184 writeSync(chunk) { chunks.push(chunk); return true; },
185 write(chunk) { chunks.push(chunk); },
186 };
187 await pipeTo(from('hello'), writer);
188 assert.strictEqual(chunks.length > 0, true);
189}
190
191// PipeTo preventFail option
192async function testPipeToPreventFail() {

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…