Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
data
Summary
=
Summary
{
- summaryWaiting :: ! PropertyCount
- summaryRunning :: ! PropertyCount
- summaryFailed :: ! PropertyCount
- summaryGaveUp :: ! PropertyCount
- summaryOK :: ! PropertyCount
-
data
Report
a =
Report
{
- reportTests :: ! TestCount
- reportDiscards :: ! DiscardCount
- reportCoverage :: !( Coverage CoverCount )
- reportSeed :: ! Seed
- reportStatus :: !a
-
data
Progress
- = Running
- | Shrinking ! FailureReport
-
data
Result
- = Failed ! FailureReport
- | GaveUp
- | OK
-
data
FailureReport
=
FailureReport
{
- failureShrinks :: ! ShrinkCount
- failureShrinkPath :: ! ShrinkPath
- failureCoverage :: !( Maybe ( Coverage CoverCount ))
- failureAnnotations :: ![ FailedAnnotation ]
- failureLocation :: !( Maybe Span )
- failureMessage :: ! String
- failureDiff :: !( Maybe Diff )
- failureFootnotes :: ![ String ]
-
data
FailedAnnotation
=
FailedAnnotation
{
- failedSpan :: !( Maybe Span )
- failedValue :: ! String
- data Style
-
data
Markup
- = WaitingIcon
- | WaitingHeader
- | RunningIcon
- | RunningHeader
- | ShrinkingIcon
- | ShrinkingHeader
- | FailedIcon
- | FailedText
- | GaveUpIcon
- | GaveUpText
- | SuccessIcon
- | SuccessText
- | CoverageIcon
- | CoverageText
- | CoverageFill
- | DeclarationLocation
- | StyledLineNo ! Style
- | StyledBorder ! Style
- | StyledSource ! Style
- | AnnotationGutter
- | AnnotationValue
- | FailureArrows
- | FailureGutter
- | FailureMessage
- | DiffPrefix
- | DiffInfix
- | DiffSuffix
- | DiffSame
- | DiffRemoved
- | DiffAdded
- | ReproduceHeader
- | ReproduceGutter
- | ReproduceSource
- renderProgress :: MonadIO m => UseColor -> Maybe PropertyName -> Report Progress -> m String
- renderResult :: MonadIO m => UseColor -> Maybe PropertyName -> Report Result -> m String
- renderSummary :: MonadIO m => UseColor -> Summary -> m String
- renderDoc :: MonadIO m => UseColor -> Doc Markup -> m String
- ppProgress :: MonadIO m => Maybe PropertyName -> Report Progress -> m ( Doc Markup )
- ppResult :: MonadIO m => Maybe PropertyName -> Report Result -> m ( Doc Markup )
- ppSummary :: MonadIO m => Summary -> m ( Doc Markup )
- fromResult :: Result -> Summary
- mkFailure :: ShrinkCount -> ShrinkPath -> Maybe ( Coverage CoverCount ) -> Maybe Span -> String -> Maybe Diff -> [ Log ] -> FailureReport
Report
A summary of all the properties executed.
Summary | |
|
A report on a running or completed property test.
Report | |
|
Instances
Functor Report Source # | |
Foldable Report Source # | |
Defined in Hedgehog.Internal.Report fold :: Monoid m => Report m -> m Source # foldMap :: Monoid m => (a -> m) -> Report a -> m Source # foldMap' :: Monoid m => (a -> m) -> Report a -> m Source # foldr :: (a -> b -> b) -> b -> Report a -> b Source # foldr' :: (a -> b -> b) -> b -> Report a -> b Source # foldl :: (b -> a -> b) -> b -> Report a -> b Source # foldl' :: (b -> a -> b) -> b -> Report a -> b Source # foldr1 :: (a -> a -> a) -> Report a -> a Source # foldl1 :: (a -> a -> a) -> Report a -> a Source # toList :: Report a -> [a] Source # null :: Report a -> Bool Source # length :: Report a -> Int Source # elem :: Eq a => a -> Report a -> Bool Source # maximum :: Ord a => Report a -> a Source # minimum :: Ord a => Report a -> a Source # |
|
Traversable Report Source # | |
Defined in Hedgehog.Internal.Report |
|
Show a => Show ( Report a) Source # | |
The status of a completed property test.
In the case of a failure it provides the seed used for the test, the number of shrinks, and the execution log.
data FailureReport Source #
FailureReport | |
|
Instances
Eq FailureReport Source # | |
Defined in Hedgehog.Internal.Report (==) :: FailureReport -> FailureReport -> Bool Source # (/=) :: FailureReport -> FailureReport -> Bool Source # |
|
Show FailureReport Source # | |
Defined in Hedgehog.Internal.Report |
data FailedAnnotation Source #
FailedAnnotation | |
|
Instances
Eq FailedAnnotation Source # | |
Defined in Hedgehog.Internal.Report (==) :: FailedAnnotation -> FailedAnnotation -> Bool Source # (/=) :: FailedAnnotation -> FailedAnnotation -> Bool Source # |
|
Show FailedAnnotation Source # | |
Defined in Hedgehog.Internal.Report |
Instances
Eq Markup Source # | |
Ord Markup Source # | |
Show Markup Source # | |
renderProgress :: MonadIO m => UseColor -> Maybe PropertyName -> Report Progress -> m String Source #
renderResult :: MonadIO m => UseColor -> Maybe PropertyName -> Report Result -> m String Source #
ppProgress :: MonadIO m => Maybe PropertyName -> Report Progress -> m ( Doc Markup ) Source #
fromResult :: Result -> Summary Source #
Construct a summary from a single result.
mkFailure :: ShrinkCount -> ShrinkPath -> Maybe ( Coverage CoverCount ) -> Maybe Span -> String -> Maybe Diff -> [ Log ] -> FailureReport Source #