Safe Haskell | None |
---|
Tests for lock allocation.
- data TestOwner = TestOwner Int
- data TestLock
- = TestBigLock
- | TestCollectionLockA
- | TestLockA Int
- | TestCollectionLockB
- | TestLockB Int
- data UpdateRequest b a
- = UpdateRequest b [LockRequest a]
- | FreeLockRequest b
- asAllocTrans :: (Lock a, Ord b, Show b) => LockAllocation a b -> UpdateRequest b a -> LockAllocation a b
- foldUpdates :: (Lock a, Ord b, Show b) => [UpdateRequest b a] -> LockAllocation a b
- prop_LocksDisjoint :: Property
- prop_LockslistComplete :: Property
- prop_LocksAllOwnersSubsetLockslist :: Property
- prop_LocksAllOwnersComplete :: Property
- prop_LocksAllOwnersSound :: Property
- prop_LockImplicationX :: Property
- prop_LockImplicationS :: Property
- prop_LocksStable :: Property
- requestSucceeded :: Ord a => Map a OwnerState -> LockRequest a -> Bool
- prop_LockupdateAtomic :: Property
- prop_LockReleaseSucceeds :: Property
- prop_BlockSufficient :: Property
- prop_BlockNecessary :: Property
- prop_ReadShow :: Property
- prop_OwnerComplete :: Property
- prop_OwnerSound :: Property
- prop_ReadShowRequest :: Property
- testLocking_Allocation :: Test
Documentation
TestOwner Int |
data UpdateRequest b a Source
UpdateRequest b [LockRequest a] | |
FreeLockRequest b |
(Show b, Show a) => Show (UpdateRequest b a) | |
(Arbitrary a, Arbitrary b) => Arbitrary (UpdateRequest a b) |
asAllocTrans :: (Lock a, Ord b, Show b) => LockAllocation a b -> UpdateRequest b a -> LockAllocation a bSource
foldUpdates :: (Lock a, Ord b, Show b) => [UpdateRequest b a] -> LockAllocation a bSource
prop_LocksDisjoint :: PropertySource
prop_LockslistComplete :: PropertySource
prop_LocksAllOwnersSubsetLockslist :: PropertySource
prop_LocksAllOwnersComplete :: PropertySource
prop_LocksAllOwnersSound :: PropertySource
prop_LockImplicationX :: PropertySource
prop_LockImplicationS :: PropertySource
prop_LocksStable :: PropertySource
requestSucceeded :: Ord a => Map a OwnerState -> LockRequest a -> BoolSource
Verify that a given request is statisfied in list of owned locks
prop_LockupdateAtomic :: PropertySource
prop_LockReleaseSucceeds :: PropertySource
prop_BlockSufficient :: PropertySource
prop_BlockNecessary :: PropertySource
prop_ReadShow :: PropertySource
prop_OwnerComplete :: PropertySource
prop_OwnerSound :: PropertySource
prop_ReadShowRequest :: PropertySource
testLocking_Allocation :: TestSource