(graph: dict, src_label: str, tgt_label: str)
| 59 | |
| 60 | |
| 61 | def _call_edges_matching(graph: dict, src_label: str, tgt_label: str) -> list[dict]: |
| 62 | labels = _labels(graph["nodes"]) |
| 63 | return [ |
| 64 | edge |
| 65 | for edge in graph["edges"] |
| 66 | if edge.get("relation") == "calls" |
| 67 | and labels.get(edge.get("source")) == src_label |
| 68 | and labels.get(edge.get("target")) == tgt_label |
| 69 | ] |
| 70 | |
| 71 | |
| 72 | def _owned_method_nid(graph: dict, owner_label: str, method_label: str) -> str: |
no test coverage detected