Safe Haskell | None |
---|
Unittests for ganeti-htools.
- 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
- 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
- case_TagObject_fail :: Assertion
- prop_mkDiskIndex_fail :: Positive Int -> Property
- case_readRecreateDisks_fail :: Assertion
- case_readDdmOldChanges_fail :: Assertion
- case_readExportTarget_fail :: Assertion
- testOpCodes :: Test
Arbitrary instances
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
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
case_TagObject_fail :: AssertionSource
prop_mkDiskIndex_fail :: Positive Int -> PropertySource
case_readRecreateDisks_fail :: AssertionSource
case_readDdmOldChanges_fail :: AssertionSource
case_readExportTarget_fail :: AssertionSource
testOpCodes :: TestSource