Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- stubAction :: HasCallStack => [a] -> IO (IO a)
- withSpy :: ((a -> IO ()) -> IO ()) -> IO [a]
Documentation
stubAction :: HasCallStack => [a] -> IO (IO a) Source #
Create a test stub action.
>>>
stub <- stubAction ["foo", "bar", "baz"]
>>>
stub
"foo">>>
stub
"bar">>>
stub
"baz">>>
stub
*** Exception: HUnitFailure ...stubAction: no values left...
Since: 0.5.2