module Test.Mutagen.Report
(
Report (..)
, isSuccess
)
where
import Test.Mutagen.Property (Args)
data Report
=
Success
{ Report -> Int
numPassed :: Int
, Report -> Int
numDiscarded :: Int
, Report -> Int
numFailed :: Int
}
|
Counterexample
{ numPassed :: Int
, numDiscarded :: Int
, Report -> Args
failingArgs :: Args
}
|
GaveUp
{ numPassed :: Int
, numDiscarded :: Int
, Report -> String
reason :: String
}
|
NoExpectedFailure
{ numPassed :: Int
, numDiscarded :: Int
}
deriving (Int -> Report -> ShowS
[Report] -> ShowS
Report -> String
(Int -> Report -> ShowS)
-> (Report -> String) -> ([Report] -> ShowS) -> Show Report
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Report -> ShowS
showsPrec :: Int -> Report -> ShowS
$cshow :: Report -> String
show :: Report -> String
$cshowList :: [Report] -> ShowS
showList :: [Report] -> ShowS
Show)
isSuccess :: Report -> Bool
isSuccess :: Report -> Bool
isSuccess (Success{}) = Bool
True
isSuccess Report
_ = Bool
False