For those who just wanna see battle_tested work, do this.


In [1]:
def function_I_want_to_test(arg1):
    """this is a function we want to harden"""
    i=arg1

In [2]:
from battle_tested import fuzz
fuzz(function_I_want_to_test)


testing: function_I_want_to_test()
tests: 166          speed: 1544/sec  avg: 1544
tests: 687          speed: 1811/sec  avg: 1677
tests: 1096         speed: 1691/sec  avg: 1682
tests: 1629         speed: 1762/sec  avg: 1702
tests: 2126         speed: 1771/sec  avg: 1716
tests: 2704         speed: 1823/sec  avg: 1734
tests: 3084         speed: 1766/sec  avg: 1738
total tests: 3638tests: 3636         speed: 1798/sec  avg: 1746
battle_tested: no falsifying examples found