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

Function test_resolve_identifier_exact_doc_name

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

Source from the content-addressed store, hash-verified

277
278
279def test_resolve_identifier_exact_doc_name(tmp_path):
280 reg = _make_registry(
281 tmp_path,
282 {
283 "h1": {"name": "a.pdf", "doc_name": "a-h1"},
284 "h2": {"name": "b.pdf", "doc_name": "b-h2"},
285 },
286 )
287 matches = _resolve_doc_identifier(reg, "b-h2")
288 assert [h for h, _ in matches] == ["h2"]
289
290
291def test_resolve_identifier_fuzzy_returns_all(tmp_path):

Callers

nothing calls this directly

Calls 2

_resolve_doc_identifierFunction · 0.90
_make_registryFunction · 0.85

Tested by

no test coverage detected