MCPcopy Create free account
hub / github.com/dpkp/kafka-python / test_lz4

Function test_lz4

test/test_codec.py:88–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86@pytest.mark.skipif(not has_lz4() or platform.python_implementation() == 'PyPy',
87 reason="python-lz4 crashes on old versions of pypy")
88def test_lz4():
89 for i in range(1000):
90 b1 = random_string(100).encode('utf-8')
91 b2 = lz4_decode(lz4_encode(b1))
92 assert len(b1) == len(b2)
93 assert b1 == b2
94
95
96@pytest.mark.skipif(not has_lz4() or platform.python_implementation() == 'PyPy',

Callers

nothing calls this directly

Calls 2

random_stringFunction · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…