Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- class MonadIO m => Testable (m :: Type -> Type) where
- runTestable :: m () -> IO ()
- context :: String -> m a -> m a
- throwFailure :: AssertionFail -> m a
- data TestResult = TestResult {}
- data TestResultMessage
- testResultPass :: TestResult
- testResultFromAssertionFail :: AssertionFail -> IO TestResult
- testResultFromError :: SomeException -> TestResult
- data AssertionFail = AssertionFail {}
- type FailContext = [Text]
Testable
class MonadIO m => Testable (m :: Type -> Type) where Source #
runTestable :: m () -> IO () Source #
context :: String -> m a -> m a Source #
throwFailure :: AssertionFail -> m a Source #
Instances
Testable IO Source # | |
Defined in Skeletest.Assertions | |
Testable PropertyM Source # | |
Defined in Skeletest.Prop.Internal |
TestResult
data TestResult Source #
data TestResultMessage Source #
AssertionFail
data AssertionFail Source #
Instances
Exception AssertionFail Source # | |
Defined in Skeletest.Internal.TestRunner | |
Show AssertionFail Source # | |
Defined in Skeletest.Internal.TestRunner showsPrec :: Int -> AssertionFail -> ShowS # show :: AssertionFail -> String # showList :: [AssertionFail] -> ShowS # |
type FailContext = [Text] Source #
Context for failures, in order of most recently added -> least recently added