Safe Haskell | None |
---|
Unittests for xm list --long
parser
- genConfig :: Int -> Gen LispConfig
- canBeNumber :: String -> Bool
- canBeNumberChar :: Char -> Bool
- testDomain :: String -> Map String Domain -> Assertion
- testUptimeInfo :: String -> Map Int UptimeInfo -> Assertion
- relativeError :: Double -> Double -> Double
- isAlmostEqual :: LispConfig -> LispConfig -> Property
- serializeConf :: LispConfig -> String
- serializeUptime :: UptimeInfo -> String
- prop_config :: LispConfig -> Property
- prop_uptimeInfo :: UptimeInfo -> Property
- case_xen401list :: Assertion
- case_xen401uptime :: Assertion
- testHypervisor_Xen_XmParser :: Test
Arbitraries
genConfig :: Int -> Gen LispConfigSource
canBeNumber :: String -> BoolSource
canBeNumberChar :: Char -> BoolSource
Helper functions for tests
testDomain :: String -> Map String Domain -> AssertionSource
testUptimeInfo :: String -> Map Int UptimeInfo -> AssertionSource
relativeError :: Double -> Double -> DoubleSource
isAlmostEqual :: LispConfig -> LispConfig -> PropertySource
serializeConf :: LispConfig -> StringSource
serializeUptime :: UptimeInfo -> StringSource
prop_config :: LispConfig -> PropertySource
prop_uptimeInfo :: UptimeInfo -> PropertySource
case_xen401list :: AssertionSource
case_xen401uptime :: AssertionSource