quickcheck-state-machine-0.0.0: Test monadic programs using state machine based models

Copyright(C) 2017 ATS Advanced Telematic Systems GmbH
LicenseBSD-style (see the file LICENSE)
MaintainerStevan Andjelkovic <stevan@advancedtelematic.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Test.StateMachine.Internal.ScopeCheck

Description

This module provides scope-checking for internal commands. This functionality isn't used anywhere in the library, but can be useful for writing metaproperties.

Synopsis

Documentation

scopeCheck :: forall cmd. (IxFoldable cmd, HasResponse cmd) => [IntRefed cmd] -> Bool Source #

Scope-check a list of untyped internal commands, i.e. make sure that no command uses a reference that doesn't exist.

scopeCheckFork :: (IxFoldable cmd, HasResponse cmd) => Fork [IntRefed cmd] -> Bool Source #

Same as above, but for forks rather than lists.