MCPcopy Create free account
hub / github.com/apache/fory / test_murmurhash3

Function test_murmurhash3

python/pyfory/tests/test_cross_language.py:291–297  ·  view source on GitHub ↗
(data_file_path)

Source from the content-addressed store, hash-verified

289
290@cross_language_test
291def test_murmurhash3(data_file_path):
292 with open(data_file_path, "rb") as f:
293 data_bytes = f.read()
294 buffer = pyfory.Buffer(data_bytes)
295 h1, h2 = pyfory.lib.mmh3.hash_buffer(bytearray([1, 2, 8]), seed=47)
296 assert buffer.read_int64() == h1
297 assert buffer.read_int64() == h2
298
299
300@cross_language_test

Callers

nothing calls this directly

Calls 3

read_int64Method · 0.95
readMethod · 0.65
BufferMethod · 0.45

Tested by

no test coverage detected