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

Function test_zstd

test/test_codec.py:119–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117
118@pytest.mark.skipif(not has_zstd(), reason="Zstd not available")
119def test_zstd():
120 for _ in range(1000):
121 b1 = random_string(100).encode('utf-8')
122 b2 = zstd_decode(zstd_encode(b1))
123 assert b1 == b2
124
125
126@pytest.mark.skipif(not has_zstd(), reason="Zstd not available")

Callers

nothing calls this directly

Calls 4

random_stringFunction · 0.90
zstd_decodeFunction · 0.90
zstd_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…