(result, caller="Run()")
| 30 | |
| 31 | |
| 32 | def _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]) |
no test coverage detected