Safe Haskell | None |
---|
Synopsis
- taskCheck :: IOrep () -> Specification -> IO ()
- taskCheckWith :: Args -> IOrep () -> Specification -> IO ()
- taskCheckOutcome :: IOrep () -> Specification -> IO Outcome
- taskCheckWithOutcome :: Args -> IOrep () -> Specification -> IO Outcome
- data Args = Args {
- maxIterationUnfold :: Int
- valueSize :: Integer
- solverTimeout :: Int
- maxTimeouts :: Int
- testsPerPath :: Int
- maxNegative :: Int
- terminalOutput :: Bool
- feedbackStyle :: FeedbackStyle
- avoidOverflows :: Bool
- solverMaxSeqLength :: Int
- stdArgs :: Args
- data FeedbackStyle = FeedbackStyle {
- simplifyFeedback :: Bool
- traceStyle :: TraceStyle
- data TraceStyle
- defaultFeedback :: FeedbackStyle
- data Outcome = Outcome CoreOutcome OutcomeHints
- data CoreOutcome
- data OutcomeHints
- = NoHints
- | OverflowHint Int
- type ExpectedRun = NTrace
- type ActualRun = NTrace
- isSuccess :: Outcome -> Bool
- isFailure :: Outcome -> Bool
- overflowWarnings :: Outcome -> Int
- printOutcomeWith :: FeedbackStyle -> Outcome -> Doc
- pPrintOutcomeHints :: OutcomeHints -> Doc
- taskCheckOn :: [Inputs] -> IOrep () -> Specification -> Outcome
- generateStaticTestSuite :: Args -> Specification -> IO [Inputs]
- type Inputs = [Line]
Documentation
taskCheck :: IOrep () -> Specification -> IO () Source #
taskCheckWith :: Args -> IOrep () -> Specification -> IO () Source #
taskCheckOutcome :: IOrep () -> Specification -> IO Outcome Source #
taskCheckWithOutcome :: Args -> IOrep () -> Specification -> IO Outcome Source #
Args | |
|
data FeedbackStyle Source #
FeedbackStyle | |
|
data CoreOutcome Source #
Instances
Monoid CoreOutcome Source # | |
Defined in Test.IOTasks.Testing mappend :: CoreOutcome -> CoreOutcome -> CoreOutcome mconcat :: [CoreOutcome] -> CoreOutcome | |
Semigroup CoreOutcome Source # | |
Defined in Test.IOTasks.Testing (<>) :: CoreOutcome -> CoreOutcome -> CoreOutcome sconcat :: NonEmpty CoreOutcome -> CoreOutcome stimes :: Integral b => b -> CoreOutcome -> CoreOutcome | |
Show CoreOutcome Source # | |
Defined in Test.IOTasks.Testing showsPrec :: Int -> CoreOutcome -> ShowS show :: CoreOutcome -> String showList :: [CoreOutcome] -> ShowS | |
Eq CoreOutcome Source # | |
Defined in Test.IOTasks.Testing (==) :: CoreOutcome -> CoreOutcome -> Bool (/=) :: CoreOutcome -> CoreOutcome -> Bool |
data OutcomeHints Source #
NoHints | |
OverflowHint Int |
Instances
Monoid OutcomeHints Source # | |
Defined in Test.IOTasks.Testing mappend :: OutcomeHints -> OutcomeHints -> OutcomeHints mconcat :: [OutcomeHints] -> OutcomeHints | |
Semigroup OutcomeHints Source # | |
Defined in Test.IOTasks.Testing (<>) :: OutcomeHints -> OutcomeHints -> OutcomeHints sconcat :: NonEmpty OutcomeHints -> OutcomeHints stimes :: Integral b => b -> OutcomeHints -> OutcomeHints | |
Show OutcomeHints Source # | |
Defined in Test.IOTasks.Testing showsPrec :: Int -> OutcomeHints -> ShowS show :: OutcomeHints -> String showList :: [OutcomeHints] -> ShowS | |
Eq OutcomeHints Source # | |
Defined in Test.IOTasks.Testing (==) :: OutcomeHints -> OutcomeHints -> Bool (/=) :: OutcomeHints -> OutcomeHints -> Bool |
type ExpectedRun = NTrace Source #
overflowWarnings :: Outcome -> Int Source #
printOutcomeWith :: FeedbackStyle -> Outcome -> Doc Source #
pPrintOutcomeHints :: OutcomeHints -> Doc Source #
pre-computed test suites
taskCheckOn :: [Inputs] -> IOrep () -> Specification -> Outcome Source #
generateStaticTestSuite :: Args -> Specification -> IO [Inputs] Source #