(result: dict, label: str, source_file: str)
| 19 | |
| 20 | |
| 21 | def _node_id(result: dict, label: str, source_file: str) -> str: |
| 22 | matches = [ |
| 23 | node["id"] |
| 24 | for node in result["nodes"] |
| 25 | if node.get("label") == label and node.get("source_file") == source_file |
| 26 | ] |
| 27 | assert len(matches) == 1 |
| 28 | return matches[0] |
| 29 | |
| 30 | |
| 31 | def _has_edge(result: dict, source: str, target: str, relation: str) -> bool: |
no test coverage detected