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

Function test_js_block_comment_rationale_extracted

tests/test_rationale.py:286–296  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

284
285
286def test_js_block_comment_rationale_extracted(tmp_path):
287 from graphify.extract import extract_js
288 path = _write_ts(tmp_path, '''
289 /**
290 * WHY: retries are capped because the upstream rate-limits at 10 rps.
291 */
292 export function fetchData(): void {}
293 ''')
294 result = extract_js(path)
295 rationale = [n for n in result["nodes"] if n.get("file_type") == "rationale"]
296 assert any("rate-limits" in n["label"] for n in rationale)
297
298
299def test_js_adr_reference_extracted(tmp_path):

Callers

nothing calls this directly

Calls 3

extract_jsFunction · 0.90
_write_tsFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected