Skip to content

Commit

Permalink
Remove monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Apr 22, 2024
1 parent 3c2f2ac commit 3ff1bfe
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions quickcheck-dynamic/src/Test/QuickCheck/StateModel.hs
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,6 @@ class (forall a. Show (Action state a), Monad m) => RunModel state m where
postconditionOnFailure :: (state, state) -> Action state a -> LookUp -> Either (Error state) a -> Property
postconditionOnFailure _ _ _ _ = property True

-- | Allows the user to attach additional information to the `Property` at each step of the process.
-- This function is given the full transition that's been executed, including the start and ending
-- `state`, the `Action`, the current environment to `Lookup` and the value produced by `perform`
-- while executing this step.
monitoring :: (state, state) -> Action state a -> LookUp -> Either (Error state) a -> Property -> Property
monitoring _ _ _ _ prop = prop

-- | Allows the user to attach additional information to the `Property` if a positive action fails.
monitoringFailure :: state -> Action state a -> LookUp -> Error state -> Property -> Property
monitoringFailure _ _ _ _ prop = prop
Expand Down Expand Up @@ -542,5 +535,4 @@ runSteps s env ((v := act) : as) = do
| Right val <- ret = (var :== val) : env
| otherwise = env
stateTransition = (underlyingState s, underlyingState s')
monitor $ monitoring @state @m stateTransition action (lookUpVar env') ret
pure (s', env', stateTransition)

0 comments on commit 3ff1bfe

Please sign in to comment.