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

Function testMultipleWrites

test/parallel/test-stream-iter-push-basic.js:18–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18async function testMultipleWrites() {
19 const { writer, readable } = push({ highWaterMark: 10 });
20
21 writer.write('a');
22 writer.write('b');
23 writer.write('c');
24 writer.end();
25
26 const data = await text(readable);
27 assert.strictEqual(data, 'abc');
28}
29
30async function testDesiredSize() {
31 const { writer } = push({ highWaterMark: 3 });

Callers 1

Calls 4

pushFunction · 0.70
textFunction · 0.50
writeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…