Safe Haskell | None |
---|
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 :: Gen TimeAsDoubleJSON shrink :: TimeAsDoubleJSON -> [TimeAsDoubleJSON] | |
Arbitrary a => Arbitrary (MaybeForJSON a) # | |
arbitrary :: Gen (MaybeForJSON a) shrink :: MaybeForJSON a -> [MaybeForJSON a] |