| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Mutagen.Config
Description
Configuration options for Mutagen.
Synopsis
- data Config = Config {
- maxSuccess :: Int
- maxDiscardRatio :: Int
- timeout :: Maybe Integer
- expect :: Bool
- maxGenSize :: Int
- randomMutations :: Int
- maxMutationDepth :: Maybe Int
- autoResetAfter :: Maybe Int
- lazyPruning :: LazyPruningMode
- mutationOrder :: MutationOrder
- useFragments :: Bool
- randomFragments :: Int
- filterFragments :: FragmentTypeFilter
- examples :: [Args]
- traceBackend :: TraceBackend
- maxTraceLength :: Maybe Int
- keepGoing :: Bool
- saveCounterexamples :: Maybe FilePath
- chatty :: Bool
- debug :: DebugMode
- tui :: Bool
- defaultConfig :: Config
- allow :: Typeable a => FragmentTypeFilter
- allow' :: Typeable a => Proxy a -> FragmentTypeFilter
- deny :: Typeable a => FragmentTypeFilter
- deny' :: Typeable a => Proxy a -> FragmentTypeFilter
- example :: IsArgs a => a -> Args
- data LazyPruningMode
- data EvaluationOrder
- data DebugMode
- data FragmentTypeFilter
- data TraceBackend
Configuration options
Configuration options for Mutagen.
Constructors
| Config | |
Fields
| |
defaultConfig :: Config Source #
Default configuration options for Mutagen.
Helpers
allow :: Typeable a => FragmentTypeFilter Source #
Allow a type to be saved in the fragment store.
deny :: Typeable a => FragmentTypeFilter Source #
Deny a type from being saved in the fragment store.
example :: IsArgs a => a -> Args Source #
Helper to create an example input of any supported argument type.
data LazyPruningMode Source #
Lazy pruning mode.
Used to dictate whether lazy pruning is used or not, and in which order subexpressions are mutated.
Constructors
| NoLazyPruning | Do not use lazy pruning; mutate all subexpressions. |
| LazyPruning EvaluationOrder | Use lazy pruning; mutate only evaluated subexpressions, following the order in which they were evaluated. |
Instances
| Show LazyPruningMode Source # | |
Defined in Test.Mutagen.Config Methods showsPrec :: Int -> LazyPruningMode -> ShowS # show :: LazyPruningMode -> String # showList :: [LazyPruningMode] -> ShowS # | |
| Eq LazyPruningMode Source # | |
Defined in Test.Mutagen.Config Methods (==) :: LazyPruningMode -> LazyPruningMode -> Bool # (/=) :: LazyPruningMode -> LazyPruningMode -> Bool # | |
data EvaluationOrder Source #
Evaluation order for lazy pruning.
Used to dictate how to order the evaluated subexpressions to be mutated.
Constructors
| Forward | Mutate the least recently evaluated subexpressions first. |
| Backward | Mutate the most recently evaluated subexpressions first. |
Instances
| Show EvaluationOrder Source # | |
Defined in Test.Mutagen.Config Methods showsPrec :: Int -> EvaluationOrder -> ShowS # show :: EvaluationOrder -> String # showList :: [EvaluationOrder] -> ShowS # | |
| Eq EvaluationOrder Source # | |
Defined in Test.Mutagen.Config Methods (==) :: EvaluationOrder -> EvaluationOrder -> Bool # (/=) :: EvaluationOrder -> EvaluationOrder -> Bool # | |
Debugging mode.
Allows stopping the loop between test cases to inspect the internal state.
Constructors
| NoDebug | Run normally without stopping between tests. |
| StopOnPassed | Stop after every passed test case. |
| AlwaysStop | Stop after every test case (passed or discarded). |
Re-exports
data FragmentTypeFilter Source #
Fragment type allow and deny lists.
Instances
| Monoid FragmentTypeFilter Source # | |
Defined in Test.Mutagen.Fragment.Store Methods mempty :: FragmentTypeFilter # mappend :: FragmentTypeFilter -> FragmentTypeFilter -> FragmentTypeFilter # mconcat :: [FragmentTypeFilter] -> FragmentTypeFilter # | |
| Semigroup FragmentTypeFilter Source # | |
Defined in Test.Mutagen.Fragment.Store Methods (<>) :: FragmentTypeFilter -> FragmentTypeFilter -> FragmentTypeFilter # sconcat :: NonEmpty FragmentTypeFilter -> FragmentTypeFilter # stimes :: Integral b => b -> FragmentTypeFilter -> FragmentTypeFilter # | |
| Show FragmentTypeFilter Source # | |
Defined in Test.Mutagen.Fragment.Store Methods showsPrec :: Int -> FragmentTypeFilter -> ShowS # show :: FragmentTypeFilter -> String # showList :: [FragmentTypeFilter] -> ShowS # | |
| Eq FragmentTypeFilter Source # | |
Defined in Test.Mutagen.Fragment.Store Methods (==) :: FragmentTypeFilter -> FragmentTypeFilter -> Bool # (/=) :: FragmentTypeFilter -> FragmentTypeFilter -> Bool # | |
data TraceBackend Source #
Supported tracing backends.
Instances
| Show TraceBackend Source # | |
Defined in Test.Mutagen.Tracer.Store.Types Methods showsPrec :: Int -> TraceBackend -> ShowS # show :: TraceBackend -> String # showList :: [TraceBackend] -> ShowS # | |
| Eq TraceBackend Source # | |
Defined in Test.Mutagen.Tracer.Store.Types | |