ganeti
Safe HaskellNone

Test.Ganeti.HTools.Types

Description

Unittests for ganeti-htools.

Synopsis

Helpers

Arbitrary instance

genBiggerISpec :: ISpec -> Gen ISpec Source #

Generates an ispec bigger than the given one.

Test cases

prop_opToResult :: OpResult Int -> Property Source #

prop_eitherToResult :: Either String Int -> Bool Source #

case_AutoRepairType_sort :: Assertion Source #

Test AutoRepairType ordering is as expected and consistent with Python codebase.

case_AutoRepairResult_pyequiv :: Assertion Source #

Test AutoRepairResult type is equivalent with Python codebase.

Orphan instances

Arbitrary ISpec # 
Instance details

Methods

arbitrary :: Gen ISpec

shrink :: ISpec -> [ISpec]

Arbitrary MinMaxISpecs # 
Instance details

Arbitrary FailMode # 
Instance details

Arbitrary IPolicy # 
Instance details

Methods

arbitrary :: Gen IPolicy

shrink :: IPolicy -> [IPolicy]

Arbitrary a => Arbitrary (OpResult a) # 
Instance details

Methods

arbitrary :: Gen (OpResult a)

shrink :: OpResult a -> [OpResult a]