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

Method test_compress_empty

Lib/test/test_zstd.py:395–400  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

393 self.assertEqual(nt.decompressed_size, len(THIS_FILE_BYTES))
394
395 def test_compress_empty(self):
396 # output empty content frame
397 self.assertNotEqual(compress(b''), b'')
398
399 c = ZstdCompressor()
400 self.assertNotEqual(c.compress(b'', c.FLUSH_FRAME), b'')
401
402 def test_set_pledged_input_size(self):
403 DAT = DECOMPRESSED_100_PLUS_32KB

Callers

nothing calls this directly

Calls 3

compressFunction · 0.90
assertNotEqualMethod · 0.80
compressMethod · 0.45

Tested by

no test coverage detected