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

Function _calls

tests/test_java_member_calls.py:16–29  ·  view source on GitHub ↗
(tmp_path: Path, files: dict[str, str])

Source from the content-addressed store, hash-verified

14
15
16def _calls(tmp_path: Path, files: dict[str, str]):
17 paths = []
18 for name, body in files.items():
19 path = tmp_path / name
20 path.parent.mkdir(parents=True, exist_ok=True)
21 path.write_text(body, encoding="utf-8")
22 paths.append(path)
23 result = extract(paths, cache_root=tmp_path / "graphify-out")
24 calls = {
25 (edge["source"], edge["target"])
26 for edge in result["edges"]
27 if edge.get("relation") == "calls"
28 }
29 return calls, result
30
31
32def _find(result: dict, label: str, id_contains: str) -> str:

Calls 3

extractFunction · 0.90
itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected