MCPcopy
hub / github.com/pyca/cryptography / load_wycheproof_tests

Function load_wycheproof_tests

tests/utils.py:993–1000  ·  view source on GitHub ↗
(wycheproof: str, test_file: str, subdir: str)

Source from the content-addressed store, hash-verified

991
992
993def load_wycheproof_tests(wycheproof: str, test_file: str, subdir: str):
994 path = os.path.join(wycheproof, subdir, test_file)
995 with open(path, encoding="utf-8") as f:
996 data = json.load(f)
997 for group in data.pop("testGroups"):
998 cases = group.pop("tests")
999 for c in cases:
1000 yield WycheproofTest(data, group, c)

Callers 1

run_wycheproofFunction · 0.85

Calls 1

WycheproofTestClass · 0.85

Tested by

no test coverage detected