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

Function test_hash_file_deterministic

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

Source from the content-addressed store, hash-verified

61
62
63def test_hash_file_deterministic(tmp_path):
64 f = tmp_path / "data.txt"
65 f.write_text("deterministic content")
66 assert HashRegistry.hash_file(f) == HashRegistry.hash_file(f)
67
68
69def test_hash_file_different_content(tmp_path):

Callers

nothing calls this directly

Calls 1

hash_fileMethod · 0.80

Tested by

no test coverage detected