MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_generator_expression_is_node

Function test_generator_expression_is_node

tests/test_ts_generators.py:48–52  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

46
47
48def test_generator_expression_is_node(tmp_path):
49 f = _write(tmp_path / "src" / "h.ts",
50 "export const stream = function* () { yield 'a'; };\n")
51 r = extract([f], cache_root=tmp_path)
52 assert _has_node(r, "src/h.ts", "stream")
53
54
55def test_generator_body_calls_are_attributed(tmp_path):

Callers

nothing calls this directly

Calls 3

extractFunction · 0.90
_writeFunction · 0.70
_has_nodeFunction · 0.70

Tested by

no test coverage detected