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

Function _call_edges

tests/test_lua_method_calls.py:12–19  ·  view source on GitHub ↗
(path: Path, base: Path)

Source from the content-addressed store, hash-verified

10
11
12def _call_edges(path: Path, base: Path) -> set[tuple[str, str]]:
13 result = extract([path], root=base, cache_root=base, parallel=False)
14 label = {node["id"]: node["label"] for node in result["nodes"]}
15 return {
16 (label.get(edge["source"], edge["source"]), label.get(edge["target"], edge["target"]))
17 for edge in result["edges"]
18 if edge["relation"] in ("calls", "indirect_call")
19 }
20
21
22def test_lua_self_colon_call_resolves_to_sibling_method(tmp_path):

Calls 2

extractFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected