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

Function _call_edge

tests/test_pascal_resolution.py:46–53  ·  view source on GitHub ↗
(graph: dict, src_label: str, tgt_label: str)

Source from the content-addressed store, hash-verified

44
45
46def _call_edge(graph: dict, src_label: str, tgt_label: str):
47 labels = _labels(graph["nodes"])
48 for e in graph["edges"]:
49 if e.get("relation") != "calls":
50 continue
51 if labels.get(e.get("source")) == src_label and labels.get(e.get("target")) == tgt_label:
52 return e
53 return None
54
55
56def test_single_file_extraction_reports_unresolved_inherited_call():

Calls 2

_labelsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected