Safe Haskell | None |
---|
Unittests for ganeti-htools.
Synopsis
- prop_addIdempotent :: PeerMap -> Key -> Elem -> Property
- prop_removeIdempotent :: PeerMap -> Key -> Property
- prop_findMissing :: PeerMap -> Key -> Property
- prop_addFind :: PeerMap -> Key -> Elem -> Property
- prop_maxElem :: PeerMap -> Property
- testHTools_PeerMap :: Test
Documentation
prop_removeIdempotent :: PeerMap -> Key -> Property Source #
Make sure remove is idempotent.
prop_findMissing :: PeerMap -> Key -> Property Source #
Make sure a missing item returns 0.
prop_maxElem :: PeerMap -> Property Source #
Manual check that maxElem returns the maximum indeed, or 0 for null.
testHTools_PeerMap :: Test Source #
List of tests for the PeerMap module.