Safe Haskell | None |
---|
Unittests for ganeti-htools.
- arbitraryOpTagsGet :: Gen OpCode
- arbitraryOpTagsSet :: Gen OpCode
- arbitraryOpTagsDel :: Gen OpCode
- arbitraryDataCollector :: Gen (Container Bool)
- arbitraryDataCollectorInterval :: Gen (Maybe (Container Int))
- emptyJSObject :: JSObject JSValue
- emptyMUD :: Gen (Maybe (JSObject JSValue))
- genEmptyContainer :: Ord a => Gen (GenericContainer a b)
- genDiskIndices :: Gen [DiskIndex]
- genNodeNames :: Gen [String]
- genNodeNamesNE :: Gen [NonEmptyString]
- genNodeNameNE :: Gen NonEmptyString
- genNameNE :: Gen NonEmptyString
- genNamesNE :: Gen [NonEmptyString]
- genFieldsNE :: Gen [NonEmptyString]
- genMacPrefix :: Gen NonEmptyString
- arbitraryPrivateJSObj :: Gen (JSObject (Private JSValue))
- isJsonError :: Result a -> Bool
- prop_serialization :: OpCode -> Property
- case_AllDefined :: Assertion
- case_py_compat_types :: Assertion
- case_py_compat_fields :: Assertion
- prop_setOpComment :: MetaOpCode -> String -> Property
- prop_mkDiskIndex_fail :: Positive Int -> Property
- case_readRecreateDisks_fail :: Assertion
- case_readDdmOldChanges_fail :: Assertion
- case_readExportTarget_fail :: Assertion
- testOpCodes :: Test
Arbitrary instances
arbitraryOpTagsGet :: Gen OpCodeSource
arbitraryOpTagsSet :: Gen OpCodeSource
arbitraryOpTagsDel :: Gen OpCodeSource
arbitraryDataCollector :: Gen (Container Bool)Source
arbitraryDataCollectorInterval :: Gen (Maybe (Container Int))Source
Helper functions
emptyJSObject :: JSObject JSValueSource
genEmptyContainer :: Ord a => Gen (GenericContainer a b)Source
genDiskIndices :: Gen [DiskIndex]Source
genNodeNames :: Gen [String]Source
genNodeNamesNE :: Gen [NonEmptyString]Source
genNameNE :: Gen NonEmptyStringSource
genNamesNE :: Gen [NonEmptyString]Source
genFieldsNE :: Gen [NonEmptyString]Source
genMacPrefix :: Gen NonEmptyStringSource
arbitraryPrivateJSObj :: Gen (JSObject (Private JSValue))Source
isJsonError :: Result a -> BoolSource
Test cases
prop_serialization :: OpCode -> PropertySource
case_AllDefined :: AssertionSource
case_py_compat_types :: AssertionSource
case_py_compat_fields :: AssertionSource
prop_setOpComment :: MetaOpCode -> String -> PropertySource
prop_mkDiskIndex_fail :: Positive Int -> PropertySource
case_readRecreateDisks_fail :: AssertionSource
case_readDdmOldChanges_fail :: AssertionSource
case_readExportTarget_fail :: AssertionSource
testOpCodes :: TestSource