MCPcopy Index your code
hub / github.com/dpkp/kafka-python / test_gzip

Function test_gzip

test/test_codec.py:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_gzip():
19 for i in range(1000):
20 b1 = random_string(100).encode('utf-8')
21 b2 = gzip_decode(gzip_encode(b1))
22 assert b1 == b2
23
24
25@pytest.mark.skipif(not has_snappy(), reason="Snappy not available")

Callers

nothing calls this directly

Calls 4

random_stringFunction · 0.90
gzip_decodeFunction · 0.90
gzip_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…