IOTasks
Safe HaskellNone

Test.IOTasks.Testing

Synopsis

Documentation

data Args Source #

Constructors

Args 

Fields

  • maxIterationUnfold :: Int

    maximum number of iteration unfoldings when searching for satisfiable paths. (indirectly controls maximum path length)

  • valueSize :: Integer

    size of randomly generated input candidates (the solver might find bigger solutions)

  • solverTimeout :: Int

    solver timeout in milliseconds

  • maxTimeouts :: Int

    maximum number of solver timeouts before giving up

  • testsPerPath :: Int

    minimum number of tests generated per path (when using InputMode UntilValid more test will be performed)

  • maxNegative :: Int

    maximum number of negative inputs per path (for InputMode UntilValid)

  • terminalOutput :: Bool

    print extra information

  • feedbackStyle :: FeedbackStyle

    feedback formating

  • avoidOverflows :: Bool

    check that intermediate results do not cause Int overflows, including parts of OutputTerms when possible (best-effort, no guarantees on completeness)

  • solverMaxSeqLength :: Int

    maximum length of string values in the backend solver. Smaller values may speed up test case generation, at the risk of not finding some satisfiable paths

data FeedbackStyle Source #

Constructors

FeedbackStyle 

Fields

data Outcome Source #

Instances

Instances details
Monoid Outcome Source # 
Instance details

Defined in Test.IOTasks.Testing

Semigroup Outcome Source # 
Instance details

Defined in Test.IOTasks.Testing

Methods

(<>) :: Outcome -> Outcome -> Outcome

sconcat :: NonEmpty Outcome -> Outcome

stimes :: Integral b => b -> Outcome -> Outcome

Show Outcome Source # 
Instance details

Defined in Test.IOTasks.Testing

Methods

showsPrec :: Int -> Outcome -> ShowS

show :: Outcome -> String

showList :: [Outcome] -> ShowS

Eq Outcome Source # 
Instance details

Defined in Test.IOTasks.Testing

Methods

(==) :: Outcome -> Outcome -> Bool

(/=) :: Outcome -> Outcome -> Bool

data CoreOutcome Source #

Instances

Instances details
Monoid CoreOutcome Source # 
Instance details

Defined in Test.IOTasks.Testing

Semigroup CoreOutcome Source # 
Instance details

Defined in Test.IOTasks.Testing

Methods

(<>) :: CoreOutcome -> CoreOutcome -> CoreOutcome

sconcat :: NonEmpty CoreOutcome -> CoreOutcome

stimes :: Integral b => b -> CoreOutcome -> CoreOutcome

Show CoreOutcome Source # 
Instance details

Defined in Test.IOTasks.Testing

Methods

showsPrec :: Int -> CoreOutcome -> ShowS

show :: CoreOutcome -> String

showList :: [CoreOutcome] -> ShowS

Eq CoreOutcome Source # 
Instance details

Defined in Test.IOTasks.Testing

Methods

(==) :: CoreOutcome -> CoreOutcome -> Bool

(/=) :: CoreOutcome -> CoreOutcome -> Bool

data OutcomeHints Source #

Constructors

NoHints 
OverflowHint Int 

Instances

Instances details
Monoid OutcomeHints Source # 
Instance details

Defined in Test.IOTasks.Testing

Semigroup OutcomeHints Source # 
Instance details

Defined in Test.IOTasks.Testing

Show OutcomeHints Source # 
Instance details

Defined in Test.IOTasks.Testing

Methods

showsPrec :: Int -> OutcomeHints -> ShowS

show :: OutcomeHints -> String

showList :: [OutcomeHints] -> ShowS

Eq OutcomeHints Source # 
Instance details

Defined in Test.IOTasks.Testing

Methods

(==) :: OutcomeHints -> OutcomeHints -> Bool

(/=) :: OutcomeHints -> OutcomeHints -> Bool

pre-computed test suites

type Inputs = [Line] Source #