(graph: dict, owner_label: str, method_label: str)
| 70 | |
| 71 | |
| 72 | def _owned_method_nid(graph: dict, owner_label: str, method_label: str) -> str: |
| 73 | labels = _labels(graph["nodes"]) |
| 74 | matches = [ |
| 75 | str(edge["target"]) |
| 76 | for edge in graph["edges"] |
| 77 | if edge.get("relation") == "method" |
| 78 | and labels.get(edge.get("source")) == owner_label |
| 79 | and labels.get(edge.get("target")) == method_label |
| 80 | ] |
| 81 | assert len(matches) == 1 |
| 82 | return matches[0] |
| 83 | |
| 84 | |
| 85 | def _only_call(graph: dict, target_label: str = ".helper()") -> dict: |
no test coverage detected