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

Method test_compress_empty

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

Source from the content-addressed store, hash-verified

392 self.assertEqual(nt.decompressed_size, len(THIS_FILE_BYTES))
393
394 def test_compress_empty(self):
395 # output empty content frame
396 self.assertNotEqual(compress(b''), b'')
397
398 c = ZstdCompressor()
399 self.assertNotEqual(c.compress(b'', c.FLUSH_FRAME), b'')
400
401 def test_set_pledged_input_size(self):
402 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