Safe Haskell | None |
---|
Unittests for ganeti-htools.
- genBiggerISpec :: ISpec -> Gen ISpec
- genMinMaxISpecs :: Gen MinMaxISpecs
- genMinMaxStdISpecs :: Gen (MinMaxISpecs, ISpec)
- genIPolicySpecs :: Gen ([MinMaxISpecs], ISpec)
- prop_ISpec_serialisation :: ISpec -> Property
- prop_IPolicy_serialisation :: IPolicy -> Property
- prop_opToResult :: OpResult Int -> Property
- prop_eitherToResult :: Either String Int -> Bool
- case_AutoRepairType_sort :: Assertion
- case_AutoRepairResult_pyequiv :: Assertion
- testHTools_Types :: Test
Helpers
Arbitrary instance
genBiggerISpec :: ISpec -> Gen ISpecSource
genMinMaxStdISpecs :: Gen (MinMaxISpecs, ISpec)Source
genIPolicySpecs :: Gen ([MinMaxISpecs], ISpec)Source
Test cases
prop_ISpec_serialisation :: ISpec -> PropertySource
prop_IPolicy_serialisation :: IPolicy -> PropertySource
prop_opToResult :: OpResult Int -> PropertySource
prop_eitherToResult :: Either String Int -> BoolSource
case_AutoRepairType_sort :: AssertionSource
case_AutoRepairResult_pyequiv :: AssertionSource
testHTools_Types :: TestSource