quickcheck property for parsing of content identifier logs
This commit is contained in:
parent
7c25cc7715
commit
936aee6a60
7 changed files with 40 additions and 16 deletions
|
@ -122,6 +122,5 @@ instance Arbitrary LogLine where
|
|||
arbinfo = (encodeBS <$> arbitrary) `suchThat`
|
||||
(\b -> C8.notElem '\n' b && C8.notElem '\r' b)
|
||||
|
||||
prop_parse_build_log :: [LogLine] -> Bool
|
||||
prop_parse_build_log l = parseLog (toLazyByteString (buildLog l)) == l
|
||||
|
||||
prop_parse_build_presence_log :: [LogLine] -> Bool
|
||||
prop_parse_build_presence_log l = parseLog (toLazyByteString (buildLog l)) == l
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue