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

Function gen

test/parallel/test-stream-iter-consumers-bytes.js:85–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84async function testArraySyncBasic() {
85 function* gen() {
86 yield new Uint8Array([1]);
87 yield new Uint8Array([2]);
88 yield new Uint8Array([3]);
89 }
90 const chunks = arraySync(fromSync(gen()));
91 assert.strictEqual(chunks.length, 3);
92 assert.deepStrictEqual(chunks[0], new Uint8Array([1]));

Callers 4

testArraySyncBasicFunction · 0.70
testArraySyncLimitFunction · 0.70
testArrayAsyncFunction · 0.70
testArrayAsyncLimitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected