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

Function test_hash_file_different_content

tests/test_state.py:69–74  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

67
68
69def test_hash_file_different_content(tmp_path):
70 f1 = tmp_path / "a.txt"
71 f2 = tmp_path / "b.txt"
72 f1.write_text("content A")
73 f2.write_text("content B")
74 assert HashRegistry.hash_file(f1) != HashRegistry.hash_file(f2)
75
76
77def test_load_existing_json(tmp_path):

Callers

nothing calls this directly

Calls 1

hash_fileMethod · 0.80

Tested by

no test coverage detected