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

Method test_hash_array

Lib/test/test_hashlib.py:203–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 return get_fips_mode()
202
203 def test_hash_array(self):
204 a = array.array("b", range(10))
205 for cons in self.hash_constructors:
206 c = cons(a, usedforsecurity=False)
207 if c.name in self.shakes:
208 c.hexdigest(16)
209 else:
210 c.hexdigest()
211
212 def test_algorithms_guaranteed(self):
213 self.assertEqual(hashlib.algorithms_guaranteed,

Callers

nothing calls this directly

Calls 1

hexdigestMethod · 0.45

Tested by

no test coverage detected