In [1]:
from battle_tested import fuzz
fuzz(int, quiet=True)
Out[1]:
+------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| | +----------+ |
| | | NoneType | |
| | | bytes | |
| | | complex | |
| | | dict | |
| crash_input_types | | float | |
| | | list | |
| | | set | |
| | | str | |
| | | tuple | |
| | +----------+ |
| | +---------------+ |
| | | OverflowError | |
| exception_types | | TypeError | |
| | | ValueError | |
| | +---------------+ |
| | +---------+ |
| iffy_input_types | | bytes | |
| | | float | |
| | +---------+ |
| | +---------+ |
| output_types | | int | |
| | +---------+ |
| | +----------+ |
| | | bool | |
| successful_input_types | | Fraction | |
| | | int | |
| | | UUID | |
| | +----------+ |
| successful_io | deque([], maxlen=256) |
| | +----------------+------------+-----------+-------------------------------------------------------------------------------+ |
| | | exception type | arg types | location | crash message | |
| | +----------------+------------+-----------+-------------------------------------------------------------------------------+ |
| unique_crashes | | OverflowError | ('float',) | line 1184 | 'cannot convert float infinity to integer' | |
| | | TypeError | ('set',) | line 1184 | "int() argument must be a string, a bytes-like object or a number, not 'set'" | |
| | | ValueError | ('str',) | line 1184 | "invalid literal for int() with base 10: 'PEP'" | |
| | +----------------+------------+-----------+-------------------------------------------------------------------------------+ |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------+
In [ ]:
Content source: CodyKochmann/battle_tested
Similar notebooks: