Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
p2p-governor: improve the Script shrinker
Rather than using a general shrinker for NonEmpty lists, we use a specific one. We can take advantage of the property that the scripts are executed in order, so if an error occurs, only script actions performed before the error are relevant. This means we can shrink from the back to the front, rather than trying deleting arbitrary elements, and we be a bit more agressive with shrinking by bigger jumps. Since these scripts are used in several places in the governor mock environemtn, this change makes a fairly substantial improvement to the number of shrinking steps.
- Loading branch information
Showing
3 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters