Safe Haskell | None |
---|
Test.Ganeti.JSON
Contents
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 #
prop_MaybeForJSON_serialisation :: MaybeForJSON String -> Property Source #
prop_TimeAsDoubleJSON_serialisation :: TimeAsDoubleJSON -> Property Source #
case_nestedAccessByKey :: Assertion Source #
case_nestedAccessByKeyDotted :: Assertion Source #
Orphan instances
Arbitrary TimeAsDoubleJSON # | |
Arbitrary a => Arbitrary (MaybeForJSON a) # | |