Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
test(
'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.mjs
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected