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

Function testPipeToPreventClose

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

Source from the content-addressed store, hash-verified

35}
36
37async function testPipeToPreventClose() {
38 let endCalled = false;
39 const writer = {
40 async write() {},
41 async end() { endCalled = true; },
42 async fail() {},
43 };
44
45 await pipeTo(from('data'), writer, { preventClose: true });
46 assert.strictEqual(endCalled, false);
47}
48
49// PipeTo source error calls writer.fail()
50async function testPipeToSourceError() {

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…