ganeti
Safe HaskellNone

Test.Ganeti.HTools.PeerMap

Description

Unittests for ganeti-htools.

Synopsis

Documentation

prop_addIdempotent :: PeerMap -> Key -> Elem -> Property Source #

Make sure add is idempotent.

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_addFind :: PeerMap -> Key -> Elem -> Property Source #

Make sure an added item is found.

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.