| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Test.IOTasks.Testing
Synopsis
- taskCheck :: IOrep () -> Specification -> IO ()
- taskCheckWith :: Args -> IOrep () -> Specification -> IO ()
- taskCheckOutcome :: IOrep () -> Specification -> IO Outcome
- taskCheckWithOutcome :: Args -> IOrep () -> Specification -> IO Outcome
- data Args = Args {}
- stdArgs :: Args
- data FeedbackStyle = FeedbackStyle {}
- data TraceStyle
- defaultFeedback :: FeedbackStyle
- data Outcome = Outcome CoreOutcome OutcomeHints
- data CoreOutcome
- data OutcomeHints
- 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
taskCheckWith :: Args -> IOrep () -> Specification -> IO () Source #
taskCheckOutcome :: IOrep () -> Specification -> IO Outcome Source #
taskCheckWithOutcome :: Args -> IOrep () -> Specification -> IO Outcome Source #
Constructors
| Args | |
Fields
| |
data FeedbackStyle Source #
Constructors
| FeedbackStyle | |
Fields
| |
data TraceStyle Source #
Constructors
| HorizontalTrace | |
| VerticalTrace |
Constructors
| Outcome CoreOutcome OutcomeHints |
data CoreOutcome Source #
Constructors
| Success Int | |
| Failure Inputs ExpectedRun ActualRun MatchResult | |
| GaveUp |
Instances
| Monoid CoreOutcome Source # | |
Defined in Test.IOTasks.Testing Methods mempty :: CoreOutcome # mappend :: CoreOutcome -> CoreOutcome -> CoreOutcome # mconcat :: [CoreOutcome] -> CoreOutcome # | |
| Semigroup CoreOutcome Source # | |
Defined in Test.IOTasks.Testing Methods (<>) :: CoreOutcome -> CoreOutcome -> CoreOutcome # sconcat :: NonEmpty CoreOutcome -> CoreOutcome # stimes :: Integral b => b -> CoreOutcome -> CoreOutcome # | |
| Show CoreOutcome Source # | |
Defined in Test.IOTasks.Testing Methods showsPrec :: Int -> CoreOutcome -> ShowS # show :: CoreOutcome -> String # showList :: [CoreOutcome] -> ShowS # | |
| Eq CoreOutcome Source # | |
Defined in Test.IOTasks.Testing | |
data OutcomeHints Source #
Constructors
| NoHints | |
| OverflowHint Int |
Instances
| Monoid OutcomeHints Source # | |
Defined in Test.IOTasks.Testing Methods mempty :: OutcomeHints # mappend :: OutcomeHints -> OutcomeHints -> OutcomeHints # mconcat :: [OutcomeHints] -> OutcomeHints # | |
| Semigroup OutcomeHints Source # | |
Defined in Test.IOTasks.Testing Methods (<>) :: OutcomeHints -> OutcomeHints -> OutcomeHints # sconcat :: NonEmpty OutcomeHints -> OutcomeHints # stimes :: Integral b => b -> OutcomeHints -> OutcomeHints # | |
| Show OutcomeHints Source # | |
Defined in Test.IOTasks.Testing Methods showsPrec :: Int -> OutcomeHints -> ShowS # show :: OutcomeHints -> String # showList :: [OutcomeHints] -> ShowS # | |
| Eq OutcomeHints Source # | |
Defined in Test.IOTasks.Testing | |
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 #