in bindings/python/fuzz.py [0:0]
def TestOneInput(data):
global START
with tempfile.NamedTemporaryFile() as f:
f.write(data)
f.seek(0)
try:
load_file(f.name, device=0)
except Exception as e:
EXCEPTIONS[str(e)] += 1
if datetime.datetime.now() - START > DT:
for e, n in EXCEPTIONS.items():
print(e, n)
START = datetime.datetime.now()