MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_resolve_identifier_exact_name_wins

Function test_resolve_identifier_exact_name_wins

tests/test_remove.py:267–276  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

265
266
267def 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
279def test_resolve_identifier_exact_doc_name(tmp_path):

Callers

nothing calls this directly

Calls 2

_resolve_doc_identifierFunction · 0.90
_make_registryFunction · 0.85

Tested by

no test coverage detected