mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 21:34:32 +08:00
Better documentation for the fuzz diff parser script
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
"""
|
"""
|
||||||
A script to find bugs in the diff parser.
|
A script to find bugs in the diff parser.
|
||||||
|
|
||||||
|
This script is extremely useful if changes are made to the diff parser. By
|
||||||
|
running a few thousand iterations, we can assure that the diff parser is in
|
||||||
|
good shape.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
fuzz_diff_parser.py [--pdb|--ipdb] [-l] [-n=<nr>] [-x=<nr>] random [<path>]
|
fuzz_diff_parser.py [--pdb|--ipdb] [-l] [-n=<nr>] [-x=<nr>] random [<path>]
|
||||||
fuzz_diff_parser.py [--pdb|--ipdb] [-l] redo [-o=<nr>] [-p]
|
fuzz_diff_parser.py [--pdb|--ipdb] [-l] redo [-o=<nr>] [-p]
|
||||||
@@ -8,8 +12,8 @@ Usage:
|
|||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h --help Show this screen
|
-h --help Show this screen
|
||||||
-n, --maxtries=<nr> Maximum of random tries [default: 100]
|
-n, --maxtries=<nr> Maximum of random tries [default: 1000]
|
||||||
-x, --changes=<nr> Amount of changes to be done to a file per try [default: 2]
|
-x, --changes=<nr> Amount of changes to be done to a file per try [default: 5]
|
||||||
-l, --logging Prints all the logs
|
-l, --logging Prints all the logs
|
||||||
-o, --only-last=<nr> Only runs the last n iterations; Defaults to running all
|
-o, --only-last=<nr> Only runs the last n iterations; Defaults to running all
|
||||||
-p, --print-diffs Print all test diffs
|
-p, --print-diffs Print all test diffs
|
||||||
|
|||||||
Reference in New Issue
Block a user