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

Function testArraySyncLimit

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

Source from the content-addressed store, hash-verified

95}
96
97async function testArraySyncLimit() {
98 function* gen() {
99 yield new Uint8Array(100);
100 yield new Uint8Array(100);
101 }
102 const source = fromSync(gen());
103 assert.throws(
104 () => arraySync(source, { limit: 50 }),
105 { name: 'RangeError' },
106 );
107}
108
109async function testArrayAsync() {
110 async function* gen() {

Calls 3

arraySyncFunction · 0.85
genFunction · 0.70
fromSyncFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…