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

Function _calls

tests/test_cpp_receiver_chains.py:32–38  ·  view source on GitHub ↗
(result, caller="Run()")

Source from the content-addressed store, hash-verified

30
31
32def _calls(result, caller="Run()"):
33 nodes = {n["id"]: n for n in result["nodes"]}
34 owners = {e["target"]: nodes[e["source"]].get("_cpp_qualified")
35 for e in result["edges"] if e["relation"] in {"method", "defines"}}
36 return [(owners.get(e["target"]), nodes[e["target"]]["label"], e["confidence"])
37 for e in result["edges"] if e["relation"] == "calls"
38 and nodes[e["source"]]["label"] == caller]
39
40
41@pytest.mark.parametrize("reverse", [False, True])

Calls 1

getMethod · 0.45

Tested by

no test coverage detected