Safe Haskell | None |
---|---|
Language | Haskell2010 |
- testMe :: String -> Maybe [String] -> Bool
- neverTestMe :: String -> [String] -> Bool
- verbose :: Int -> String -> Int -> String -> IO ()
- fileReporter :: FilePath -> FilePath -> Result -> IO ()
- data TestSeq = TestSeq (String -> Int -> Fabric () -> Fabric (Int -> Maybe String) -> IO ()) ()
- testFabrics :: Options -> SimMods -> String -> Int -> Fabric () -> Fabric (Int -> Maybe String) -> IO ()
- data Gen a = Gen Integer (Integer -> Maybe a)
- arbitrary :: forall w. Rep w => Gen w
- allCases :: Rep w => [w]
- finiteCases :: Rep w => Int -> [w]
- testDriver :: Options -> [TestSeq -> IO ()] -> IO ()
- generateReport :: FilePath -> IO ()
- data Options = Options {}
- matchExpected :: (Rep a, Size (W a), Show a) => String -> Seq a -> Fabric (Int -> Maybe String)
- data StreamTest w1 w2 = StreamTest {
- theStream :: Patch (Seq (Enabled w1)) (Seq (Enabled w2)) (Seq Ack) (Seq Ack)
- correctnessCondition :: [w1] -> [w2] -> Maybe String
- theStreamTestCount :: Int
- theStreamTestCycles :: Int
- theStreamName :: String
- testStream :: forall w1 w2. (Eq w1, Rep w1, Show w1, Size (W w1), Eq w2, Rep w2, Show w2, Size (W w2)) => TestSeq -> String -> StreamTest w1 w2 -> IO ()
Documentation
finiteCases :: Rep w => Int -> [w] Source #
finiteCases
returns finite values, perhaps many times, in a random order.
generateReport :: FilePath -> IO () Source #
Options | |
|
matchExpected :: (Rep a, Size (W a), Show a) => String -> Seq a -> Fabric (Int -> Maybe String) Source #
matchExpected reads a named input port from a Fabric, and checks to see that it is a refinement of a given "specification" of the output. If there is a problem, issue an error message.
data StreamTest w1 w2 Source #
StreamTest | |
|