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

Function test_snappy

test/test_codec.py:26–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25@pytest.mark.skipif(not has_snappy(), reason="Snappy not available")
26def test_snappy():
27 for i in range(1000):
28 b1 = random_string(100).encode('utf-8')
29 b2 = snappy_decode(snappy_encode(b1))
30 assert b1 == b2
31
32
33@pytest.mark.skipif(not has_snappy(), reason="Snappy not available")

Callers

nothing calls this directly

Calls 4

random_stringFunction · 0.90
snappy_decodeFunction · 0.90
snappy_encodeFunction · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…