MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_cached_files_includes_deep_namespace

Function test_cached_files_includes_deep_namespace

tests/test_cache.py:1304–1312  ·  view source on GitHub ↗

cached_files reports deep-namespace entries too.

(tmp_path)

Source from the content-addressed store, hash-verified

1302
1303
1304def test_cached_files_includes_deep_namespace(tmp_path):
1305 """cached_files reports deep-namespace entries too."""
1306 from graphify.cache import save_semantic_cache
1307
1308 f = tmp_path / "doc.md"
1309 f.write_text("# Doc\n")
1310 save_semantic_cache([{"id": "d", "source_file": "doc.md"}], [],
1311 root=tmp_path, mode="deep")
1312 assert file_hash(f, tmp_path) in cached_files(tmp_path)
1313
1314
1315def test_semantic_prune_sweeps_both_namespaces_against_same_live_set(tmp_path):

Callers

nothing calls this directly

Calls 3

save_semantic_cacheFunction · 0.90
file_hashFunction · 0.90
cached_filesFunction · 0.90

Tested by

no test coverage detected