MCPcopy
hub / github.com/C2SP/wycheproof / main

Function main

tools/reformat_json.py:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def main():
8 script_dir = Path(__file__).parent.parent
9 testvectors_dir = script_dir / 'testvectors_v1'
10
11 json_files = list(testvectors_dir.glob('*.json'))
12
13 for json_file in json_files:
14 # AES-FF1 tests include inputs expressed as a list of integers and escaped
15 # non-printable characters that format poorly. For now we ignore these
16 # files for reformatting.
17 if not json_file.name.startswith('aes_ff1_'):
18 reformat_json_file(json_file)
19
20
21def reformat_json_file(file_path):

Callers 1

reformat_json.pyFile · 0.70

Calls 1

reformat_json_fileFunction · 0.85

Tested by

no test coverage detected