MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / test_hash_basic_equivalence

Function test_hash_basic_equivalence

scripts/test_stringzilla.py:1007–1011  ·  view source on GitHub ↗
(body: str, seed_value: int)

Source from the content-addressed store, hash-verified

1005@pytest.mark.parametrize("body", ["", "hello", "world", "abcdefg", "a" * 32])
1006@pytest.mark.parametrize("seed_value", SEED_VALUES)
1007def test_hash_basic_equivalence(body: str, seed_value: int):
1008 # TODO: Add streaming hashers and compare slices vs overall
1009 hash_seeded = sz.hash(body, seed=seed_value)
1010 hash_member = sz.Str(body).hash(seed=seed_value)
1011 assert hash_seeded == hash_member
1012
1013
1014@pytest.mark.parametrize("seed_value", SEED_VALUES)

Callers

nothing calls this directly

Calls 1

hashMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…