MCPcopy Index your code
hub / github.com/RustPython/RustPython / testCompressChunks10

Method testCompressChunks10

Lib/test/test_bz2.py:836–847  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

834 self.assertEqual(data, self.EMPTY_DATA)
835
836 def testCompressChunks10(self):
837 bz2c = BZ2Compressor()
838 n = 0
839 data = b''
840 while True:
841 str = self.TEXT[n*10:(n+1)*10]
842 if not str:
843 break
844 data += bz2c.compress(str)
845 n += 1
846 data += bz2c.flush()
847 self.assertEqual(ext_decompress(data), self.TEXT)
848
849 @support.skip_if_pgo_task
850 @bigmemtest(size=_4G + 100, memuse=2)

Callers

nothing calls this directly

Calls 5

compressMethod · 0.95
flushMethod · 0.95
BZ2CompressorClass · 0.90
ext_decompressFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected