MCPcopy Create free account
hub / github.com/python/cpython / test_combine_no_iv

Method test_combine_no_iv

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

Source from the content-addressed store, hash-verified

167 self.assertEqual(res, checksum)
168
169 def test_combine_no_iv(self):
170 for _ in range(self.N):
171 a, _, chk_a = self.get_random_data(32)
172 b, _, chk_b = self.get_random_data(64)
173 res = self.combine(chk_a, chk_b, len(b))
174 self.assertEqual(res, self.checksum(a + b))
175
176 def test_combine_no_iv_invalid_length(self):
177 a, _, chk_a = self.get_random_data(32)

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