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

Function _call_edges

tests/test_python_lambda_call_shadowing.py:68–80  ·  view source on GitHub ↗
(result: dict)

Source from the content-addressed store, hash-verified

66
67
68def _call_edges(result: dict) -> set[tuple[str, str, str, str]]:
69 nodes = {node["id"]: node for node in result["nodes"]}
70 edges = result["edges"] if "edges" in result else result["links"]
71 return {
72 (
73 nodes[edge.get("_src", edge["source"])]["label"],
74 nodes[edge.get("_tgt", edge["target"])]["label"],
75 Path(nodes[edge.get("_tgt", edge["target"])]["source_file"]).name,
76 edge["relation"],
77 )
78 for edge in edges
79 if edge["relation"] in ("calls", "indirect_call")
80 }
81
82
83def _check_calls(result: dict) -> None:

Calls 1

getMethod · 0.45

Tested by

no test coverage detected