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

Method test_blake2s

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

Source from the content-addressed store, hash-verified

884 @unittest.expectedFailure # TODO: RUSTPYTHON; add to constructor const value
885 @requires_blake2
886 def test_blake2s(self):
887 self.check_blake2(hashlib.blake2s, 8, 8, 32, 32, (1<<48)-1)
888 b2s_md_len = [16, 20, 28, 32]
889 b2s_in_len = [0, 3, 64, 65, 255, 1024]
890 self.assertEqual(
891 self.blake2_rfc7693(hashlib.blake2s, b2s_md_len, b2s_in_len),
892 "6a411f08ce25adcdfb02aba641451cec53c598b24f4fc787fbdc88797f4c1dfe")
893
894 @requires_blake2
895 def test_case_blake2s_0(self):

Callers

nothing calls this directly

Calls 3

check_blake2Method · 0.95
blake2_rfc7693Method · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected