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

Function testBasicWriteRead

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

Source from the content-addressed store, hash-verified

6const { push, text } = require('stream/iter');
7
8async function testBasicWriteRead() {
9 const { writer, readable } = push();
10
11 writer.write('hello');
12 writer.end();
13
14 const data = await text(readable);
15 assert.strictEqual(data, 'hello');
16}
17
18async function testMultipleWrites() {
19 const { writer, readable } = push({ highWaterMark: 10 });

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…