Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data UseColor
- resolveColor :: MonadIO m => Maybe UseColor -> m UseColor
- data Seed = Seed {}
- resolveSeed :: MonadIO m => Maybe Seed -> m Seed
- data Verbosity
- resolveVerbosity :: MonadIO m => Maybe Verbosity -> m Verbosity
- newtype WorkerCount = WorkerCount Int
- resolveWorkers :: MonadIO m => Maybe WorkerCount -> m WorkerCount
- data Skip
- resolveSkip :: MonadIO m => Maybe Skip -> m Skip
- detectMark :: MonadIO m => m Bool
- detectColor :: MonadIO m => m UseColor
- detectSeed :: MonadIO m => m Seed
- detectVerbosity :: MonadIO m => m Verbosity
- detectWorkers :: MonadIO m => m WorkerCount
- detectSkip :: MonadIO m => m Skip
Documentation
Whether to render output using ANSI colors or not.
DisableColor | Disable ANSI colors in report output. |
EnableColor | Enable ANSI colors in report output. |
A splittable random number generator.
Instances
Read Seed Source # | |
Show Seed Source # | |
Eq Seed Source # | |
Ord Seed Source # | |
RandomGen Seed Source # | |
Defined in Hedgehog.Internal.Seed genWord8 :: Seed -> (Word8, Seed) # genWord16 :: Seed -> (Word16, Seed) # genWord32 :: Seed -> (Word32, Seed) # genWord64 :: Seed -> (Word64, Seed) # genWord32R :: Word32 -> Seed -> (Word32, Seed) # genWord64R :: Word64 -> Seed -> (Word64, Seed) # genShortByteString :: Int -> Seed -> (ShortByteString, Seed) # | |
Lift Seed Source # | |
How verbose should the report output be.
Quiet | Only display the summary of the test run. |
Normal | Display each property as it is running, as well as the summary. |
newtype WorkerCount Source #
The number of workers to use when running properties in parallel.
Instances
resolveWorkers :: MonadIO m => Maybe WorkerCount -> m WorkerCount Source #
Where to start running a property's tests.
SkipNothing | Don't skip anything. |
SkipToTest TestCount DiscardCount | Skip to a specific test number. If it fails, shrink as normal. If it passes, move on to the next test. Coverage checks are disabled. We also need to count discards, since failing "after 7 tests" points at a different generated value than failing "after 7 tests and 5 discards". |
SkipToShrink TestCount DiscardCount ShrinkPath | Skip to a specific test number and shrink state. If it fails, stop without shrinking further. If it passes, the property will pass without running any more tests. Due to implementation details, all intermediate shrink states - those on the direct path from the original test input to the target state - will be tested too, and their results discarded. |
detectMark :: MonadIO m => m Bool Source #
detectColor :: MonadIO m => m UseColor Source #
detectSeed :: MonadIO m => m Seed Source #
detectVerbosity :: MonadIO m => m Verbosity Source #
detectWorkers :: MonadIO m => m WorkerCount Source #
detectSkip :: MonadIO m => m Skip Source #