State represents QuickCheck's internal state while testing a property. The state is made visible to callback functions.
Constructors
MkStateterminal :: Terminalthe current terminal
maxSuccessTests :: Intmaximum number of successful tests needed
maxDiscardedRatio :: Intmaximum number of discarded tests per successful test
coverageConfidence :: Maybe Confidencehow to compute the size of test cases from #tests and #discarded tests
numTotMaxShrinks :: !IntHow many shrinks to try before giving up
replayStartSize :: Maybe IntSize to start at when replaying
maxTestSize :: !IntMaximum size of test
numSuccessTests :: !Intthe current number of tests that have succeeded
numDiscardedTests :: !Intthe current number of discarded tests
numRecentlyDiscardedTests :: !Intthe number of discarded tests since the last successful test
labels :: !Map [String] Intcounts for each combination of labels (label/collect)
classes :: !Map String Intcounts for each class of test case (classify/cover)
tables :: !Map String (Map String Int)tables collected using tabulate
requiredCoverage :: !Map (Maybe String, String) Doublecoverage requirements
expected :: !Boolindicates the expected result of the property
randomSeed :: !QCGenthe current random seed
numSuccessShrinks :: !Intnumber of successful shrinking steps so far
numTryShrinks :: !Intnumber of failed shrinking steps since the last successful shrink
numTotTryShrinks :: !Inttotal number of failed shrinking steps