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

Function testWritevSync

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

Source from the content-addressed store, hash-verified

163}
164
165async function testWritevSync() {
166 const { writer, readable } = push({ highWaterMark: 10 });
167 const enc = new TextEncoder();
168 assert.strictEqual(writer.writevSync([enc.encode('hel'), enc.encode('lo')]), true);
169 writer.endSync();
170 const result = await text(readable);
171 assert.strictEqual(result, 'hello');
172}
173
174async function testWritevMixedTypes() {
175 const { writer, readable } = push({ highWaterMark: 10 });

Callers 1

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…