(wycheproof: str, test_file: str, subdir: str)
| 991 | |
| 992 | |
| 993 | def 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) |
no test coverage detected