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

Function test

test/parallel/test-whatwg-transformstream.js:71–81  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

69 const stream = new TransformStream();
70
71 async function test(stream) {
72 const writer = stream.writable.getWriter();
73 const reader = stream.readable.getReader();
74
75 const { 1: result } = await Promise.all([
76 writer.write('hello'),
77 reader.read(),
78 ]);
79
80 assert.strictEqual(result.value, 'hello');
81 }
82
83 test(stream).then(common.mustCall());
84}

Callers 1

Calls 6

getWriterMethod · 0.80
getReaderMethod · 0.80
allMethod · 0.80
closeMethod · 0.65
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…