ganeti
Safe HaskellNone

Test.Ganeti.JSON

Description

Unittests for ganeti-htools.

Documentation

prop_toArray :: [Int] -> Property Source #

prop_toArrayFail :: Int -> String -> Bool -> Property Source #

arrayMaybeToJson :: JSON a => [Maybe a] -> String -> JSRecord Source #

prop_arrayMaybeFromObj :: String -> [Maybe Int] -> String -> Property Source #

prop_arrayMaybeFromObjFail :: String -> String -> Property Source #

isJError :: Result a -> Bool Source #

testJSON :: Test Source #

Orphan instances

Arbitrary TimeAsDoubleJSON # 
Instance details

Arbitrary a => Arbitrary (MaybeForJSON a) # 
Instance details