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

Method test_combine_empty

Lib/test/test_zlib.py:163–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 return data, init, checksum
162
163 def test_combine_empty(self):
164 for _ in range(self.N):
165 a, iv, checksum = self.get_random_data(32, iv=-1)
166 res = self.combine(iv, self.checksum(a), len(a))
167 self.assertEqual(res, checksum)
168
169 def test_combine_no_iv(self):
170 for _ in range(self.N):

Callers

nothing calls this directly

Calls 4

get_random_dataMethod · 0.95
combineMethod · 0.95
checksumMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected