MCPcopy Index your code
hub / github.com/python/cpython / test_roundtrip_chunks

Method test_roundtrip_chunks

Lib/test/test_lzma.py:306–314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

304 self._test_decompressor(lzd, cdata, lzma.CHECK_NONE)
305
306 def test_roundtrip_chunks(self):
307 lzc = LZMACompressor()
308 cdata = []
309 for i in range(0, len(INPUT), 10):
310 cdata.append(lzc.compress(INPUT[i:i+10]))
311 cdata.append(lzc.flush())
312 cdata = b"".join(cdata)
313 lzd = LZMADecompressor()
314 self._test_decompressor(lzd, cdata, lzma.CHECK_CRC64)
315
316 def test_roundtrip_empty_chunks(self):
317 lzc = LZMACompressor()

Callers

nothing calls this directly

Calls 7

compressMethod · 0.95
flushMethod · 0.95
_test_decompressorMethod · 0.95
LZMACompressorClass · 0.85
LZMADecompressorClass · 0.85
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected