Copyright | (c) 2022 Tim Emiola |
---|---|
License | BSD3 |
Maintainer | Tim Emiola <adetokunbo@emio.la> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides combinators that simplify unit tests of code that
use
.Framer
s
Synopsis
- parsesFromFramerOk :: Eq a => (a -> ByteString) -> Parser a -> Word32 -> [a] -> IO Bool
- chunksOfN :: Int -> ByteString -> [ByteString]
testing combinators
parsesFromFramerOk :: Eq a => (a -> ByteString) -> Parser a -> Word32 -> [a] -> IO Bool Source #
Creates a Framer
and uses 'runFramer to confirm that the expect frames
are received '
chunksOfN :: Int -> ByteString -> [ByteString] Source #
Split a ByteString
into chunks of given size