-}
-module Test.Ganeti.Block.Drbd.Parser (testBlock_DRBDParser) where
+module Test.Ganeti.Block.Drbd.Parser (testBlock_Drbd_Parser) where
import Test.QuickCheck as QuickCheck hiding (Result)
import Test.HUnit
Right obtained ->
obtained < 1000 .&&.
getFirst3Digits i ==? obtained
- where getFirst3Digits x = if x >= 1000
- then getFirst3Digits $ x `div` 10
- else x
+ where getFirst3Digits x =
+ if x >= 1000
+ then getFirst3Digits $ x `div` 10
+ else x
-- | Test if non-triplets are handled correctly (they are assumed NOT being part
-- of the number).
case_commaInt_non_triplet = testCommaInt "61,736,12" 61736
-testSuite "Block_DRBDParser"
+testSuite "Block/Drbd/Parser"
[ 'case_drbd80_emptyline,
'case_drbd83_sync_krnl2_6_39,
'case_drbd83_sync,
, testCommon
, testConfd_Utils
, testDaemon
- , testBlock_DRBDParser
+ , testBlock_Drbd_Parser
, testErrors
, testHTools_Backend_Simu
, testHTools_Backend_Text
drbdStatusParser =
DRBDStatus <$> versionInfoParser
<*> deviceParser `AC.manyTill` A.endOfInput
+ <* A.endOfInput
-- | The parser for the version information lines.
versionInfoParser :: Parser VersionInfo