(wycheproof, test_file)
| 919 | |
| 920 | |
| 921 | def load_wycheproof_tests(wycheproof, test_file): |
| 922 | path = os.path.join(wycheproof, "testvectors", test_file) |
| 923 | with open(path) as f: |
| 924 | data = json.load(f) |
| 925 | for group in data.pop("testGroups"): |
| 926 | cases = group.pop("tests") |
| 927 | for c in cases: |
| 928 | yield WycheproofTest(data, group, c) |
no test coverage detected