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

Function _calls

tests/test_js_nested_function_scope.py:11–19  ·  view source on GitHub ↗
(tmp_path, files)

Source from the content-addressed store, hash-verified

9
10
11def _calls(tmp_path, files):
12 paths = []
13 for name, code in files.items():
14 f = tmp_path / name
15 f.write_text(code, encoding="utf-8")
16 paths.append(f)
17 result = extract(sorted(paths), root=tmp_path)
18 return {(e["source"], e["target"], e["relation"]) for e in result["edges"]
19 if e["relation"] in ("calls", "indirect_call")}
20
21
22def test_same_inner_name_in_two_functions_binds_to_its_own(tmp_path):

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected