(body: str, seed_value: int)
| 1005 | @pytest.mark.parametrize("body", ["", "hello", "world", "abcdefg", "a" * 32]) |
| 1006 | @pytest.mark.parametrize("seed_value", SEED_VALUES) |
| 1007 | def 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) |
nothing calls this directly
no test coverage detected
searching dependent graphs…