(tmp_path)
| 265 | |
| 266 | |
| 267 | def test_resolve_identifier_exact_name_wins(tmp_path): |
| 268 | reg = _make_registry( |
| 269 | tmp_path, |
| 270 | { |
| 271 | "h1": {"name": "attention.pdf", "doc_name": "attention-h1"}, |
| 272 | "h2": {"name": "attention-survey.pdf", "doc_name": "attention-survey-h2"}, |
| 273 | }, |
| 274 | ) |
| 275 | matches = _resolve_doc_identifier(reg, "attention.pdf") |
| 276 | assert [h for h, _ in matches] == ["h1"] |
| 277 | |
| 278 | |
| 279 | def test_resolve_identifier_exact_doc_name(tmp_path): |
nothing calls this directly
no test coverage detected