MCPcopy Create free account
hub / github.com/dask/dask / test_hash_buffer

Function test_hash_buffer

dask/tests/test_hashing.py:21–26  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

19
20@pytest.mark.parametrize("x", buffers)
21def test_hash_buffer(x):
22 for hasher in [None] + hashers:
23 h = hash_buffer(x, hasher=hasher)
24 assert isinstance(h, bytes)
25 assert 8 <= len(h) < 32
26 assert h == hash_buffer(x, hasher=hasher)
27
28
29@pytest.mark.parametrize("x", buffers)

Callers

nothing calls this directly

Calls 1

hash_bufferFunction · 0.90

Tested by

no test coverage detected