| Safe Haskell | None |
|---|
Test.Ganeti.Storage.Lvm.LVParser
Contents
Description
Unittests for the LV Parser
Synopsis
- case_lvs_lv :: Assertion
- serializeLVInfo :: LVInfo -> String
- serializeLVInfos :: [LVInfo] -> String
- prop_parse_lvs_lv :: [LVInfo] -> Property
- testStorage_Lvm_LVParser :: Test
Documentation
case_lvs_lv :: Assertion Source #
Test parsing a LV lvs output.
serializeLVInfo :: LVInfo -> String Source #
Serialize a LVInfo in the same format that is output by lvs.
The "instance" field is not serialized because it's not provided by lvs
so it is not part of this test.
serializeLVInfos :: [LVInfo] -> String Source #
Serialize a list of LVInfo in the same format that is output by lvs.
prop_parse_lvs_lv :: [LVInfo] -> Property Source #
Test if a randomly generated LV lvs output is properly parsed.
testStorage_Lvm_LVParser :: Test Source #