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

Function testDrainableAfterClose

test/parallel/test-stream-iter-broadcast-coverage.js:127–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126// Broadcast drainableProtocol after close returns null
127async function testDrainableAfterClose() {
128 const { drainableProtocol } = require('stream/iter');
129 const { writer } = broadcast();
130 writer.endSync();
131 const result = writer[drainableProtocol]();
132 // After close, desired should be null
133 assert.strictEqual(result, null);
134}
135
136Promise.all([
137 testBroadcastWriteAbort(),

Calls 3

requireFunction · 0.50
broadcastFunction · 0.50
endSyncMethod · 0.45

Tested by

no test coverage detected