data State
State represents QuickCheck's internal state while testing a property. The state is made visible to callback functions.
MkState :: Terminal -> Int -> Int -> Maybe Confidence -> Int -> Maybe Int -> Int -> Int -> Int -> Int -> (Map [String] Int) -> (Map String Int) -> (Map String (Map String Int)) -> (Map (Maybe String, String) Double) -> Bool -> QCGen -> Int -> Int -> Int -> State
terminal :: State -> Terminal
the current terminal
maxSuccessTests :: State -> Int
maximum number of successful tests needed
maxDiscardedRatio :: State -> Int
maximum number of discarded tests per successful test
coverageConfidence :: State -> Maybe Confidence
how to compute the size of test cases from #tests and #discarded tests
numTotMaxShrinks :: State -> Int
How many shrinks to try before giving up
replayStartSize :: State -> Maybe Int
Size to start at when replaying
maxTestSize :: State -> Int
Maximum size of test
numSuccessTests :: State -> Int
the current number of tests that have succeeded
numDiscardedTests :: State -> Int
the current number of discarded tests
numRecentlyDiscardedTests :: State -> Int
the number of discarded tests since the last successful test
labels :: State -> (Map [String] Int)
counts for each combination of labels (label/collect)
classes :: State -> (Map String Int)
counts for each class of test case (classify/cover)
tables :: State -> (Map String (Map String Int))
tables collected using tabulate
requiredCoverage :: State -> (Map (Maybe String, String) Double)
coverage requirements
expected :: State -> Bool
indicates the expected result of the property
randomSeed :: State -> QCGen
the current random seed
numSuccessShrinks :: State -> Int
number of successful shrinking steps so far
numTryShrinks :: State -> Int
number of failed shrinking steps since the last successful shrink
numTotTryShrinks :: State -> Int
total number of failed shrinking steps