torch-0.1: Simple unit test library (or framework)Source codeContentsIndex
Test.Torch.Types
Documentation
class Test t whereSource
Methods
run :: MonadIO io => t -> io ResultSource
show/hide Instances
class Failure f whereSource
Methods
describe :: f -> FailReasonSource
show/hide Instances
data Result whereSource
Constructors
Pass :: Result
Fail :: Failure f => f -> Result
type FailReason = StringSource
data SomeTest whereSource
Constructors
SomeTest :: Test t => t -> SomeTest
type Tests = [SomeTest]Source
data SomeFailure whereSource
Constructors
SomeFailure :: Failure f => f -> SomeFailure
show/hide Instances
type Failures = [SomeFailure]Source
data Report Source
Constructors
Report
planed :: Int
passed :: Int
failed :: Int
failures :: Failures
data Hook Source
Constructors
Hook
hook_Pass :: IO ()
hook_Fail :: SomeFailure -> IO ()
hook_Pre :: Tests -> IO ()
hook_Post :: Report -> IO ()
show/hide Instances
Produced by Haddock version 2.4.2