(result: dict, source_suffix: str)
| 51 | |
| 52 | |
| 53 | def _node_id(result: dict, source_suffix: str) -> str: |
| 54 | return next( |
| 55 | node["id"] |
| 56 | for node in result["nodes"] |
| 57 | if node.get("source_file", "").endswith(source_suffix) |
| 58 | and node.get("label") == Path(source_suffix).name |
| 59 | ) |
| 60 | |
| 61 | |
| 62 | def _import_targets(result: dict, source_id: str, line: int) -> list[str]: |
no test coverage detected