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

Method test_roundtrip_default

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

Source from the content-addressed store, hash-verified

145 self.assertLess(min, max)
146
147 def test_roundtrip_default(self):
148 raw_dat = THIS_FILE_BYTES[: len(THIS_FILE_BYTES) // 6]
149 dat1 = compress(raw_dat)
150 dat2 = decompress(dat1)
151 self.assertEqual(dat2, raw_dat)
152
153 def test_roundtrip_level(self):
154 raw_dat = THIS_FILE_BYTES[: len(THIS_FILE_BYTES) // 6]

Callers

nothing calls this directly

Calls 3

compressFunction · 0.90
decompressFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected