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

Function testPipeToSyncPreventClose

test/parallel/test-stream-iter-pipeto-edge.js:53–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52// pipeToSync with preventClose: true — end/endSync not called
53async function testPipeToSyncPreventClose() {
54 let endCalled = false;
55 const writer = {
56 writeSync() { return true; },
57 endSync() { endCalled = true; return 0; },
58 };
59 pipeToSync(fromSync('data'), writer, { preventClose: true });
60 assert.strictEqual(endCalled, false);
61}
62
63Promise.all([
64 testPipeToSyncEndSyncFallback(),

Callers 1

Calls 2

pipeToSyncFunction · 0.85
fromSyncFunction · 0.50

Tested by

no test coverage detected