mirror of
https://github.com/barrucadu/dejafu.git
synced 2024-11-23 14:14:36 +03:00
testDejafusDiscard
takes a list of predicates
This commit is contained in:
parent
98a81a8379
commit
1ad606b6a5
@ -35,6 +35,7 @@ module Test.Tasty.DejaFu
|
||||
, testDejafusWay
|
||||
|
||||
, testDejafuDiscard
|
||||
, testDejafusDiscard
|
||||
|
||||
-- ** Re-exports
|
||||
, Predicate
|
||||
@ -246,6 +247,23 @@ testDejafusWay :: Show b
|
||||
-> TestTree
|
||||
testDejafusWay = testconc (const Nothing)
|
||||
|
||||
-- | Variant of 'testDejafusWay' which can selectively discard results.
|
||||
--
|
||||
-- @since unreleased
|
||||
testDejafusDiscard :: Show b
|
||||
=> (Either Failure a -> Maybe Discard)
|
||||
-- ^ Selectively discard results.
|
||||
-> Way
|
||||
-- ^ How to execute the concurrent program.
|
||||
-> MemType
|
||||
-- ^ The memory model to use for non-synchronised @CRef@ operations.
|
||||
-> [(TestName, ProPredicate a b)]
|
||||
-- ^ The list of predicates (with names) to check.
|
||||
-> Conc.ConcIO a
|
||||
-- ^ The computation to test.
|
||||
-> TestTree
|
||||
testDejafusDiscard = testconc
|
||||
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- Refinement property testing
|
||||
|
Loading…
Reference in New Issue
Block a user