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

Function testWritev

test/parallel/test-stream-iter-push-writer.js:156–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154}
155
156async function testWritev() {
157 const { writer, readable } = push({ highWaterMark: 10 });
158 const enc = new TextEncoder();
159 writer.writev([enc.encode('hel'), enc.encode('lo')]);
160 writer.endSync();
161 const result = await text(readable);
162 assert.strictEqual(result, 'hello');
163}
164
165async function testWritevSync() {
166 const { writer, readable } = push({ highWaterMark: 10 });

Callers 1

Calls 5

encodeMethod · 0.95
pushFunction · 0.70
textFunction · 0.50
writevMethod · 0.45
endSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…