MCPcopy Create free account
hub / github.com/nodejs/node / generate

Function generate

test/fixtures/test-runner/plan/streaming.mjs:5–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4test('planning with streams', (t, done) => {
5 function* generate() {
6 yield 'a';
7 yield 'b';
8 yield 'c';
9 }
10 const expected = ['a', 'b', 'c'];
11 t.plan(expected.length);
12 const stream = Readable.from(generate());

Callers 1

streaming.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected