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

Function test_zstd_multi_frame

test/test_codec.py:127–134  ·  view source on GitHub ↗

Test that zstd_decode handles multiple concatenated zstd frames.

()

Source from the content-addressed store, hash-verified

125
126@pytest.mark.skipif(not has_zstd(), reason="Zstd not available")
127def test_zstd_multi_frame():
128 """Test that zstd_decode handles multiple concatenated zstd frames."""
129 frame1_data = b'some payload data ' * 100
130 frame2_data = b'another frame of data ' * 100
131 # Concatenate two independently compressed zstd frames
132 multi_frame_payload = zstd_encode(frame1_data) + zstd_encode(frame2_data)
133 result = zstd_decode(multi_frame_payload)
134 assert result == frame1_data + frame2_data

Callers

nothing calls this directly

Calls 2

zstd_encodeFunction · 0.90
zstd_decodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…