quickcheck-state-machine-0.4.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.Types.History

Description

This module contains the notion of a history of an execution of a (parallel) program.

Synopsis

Documentation

newtype History cmd resp Source #

Constructors

History 

Fields

type History' cmd resp = [(Pid, HistoryEvent cmd resp)] Source #

newtype Pid Source #

Constructors

Pid 

Fields

Instances
Eq Pid Source # 
Instance details

Defined in Test.StateMachine.Types.History

Methods

(==) :: Pid -> Pid -> Bool #

(/=) :: Pid -> Pid -> Bool #

Show Pid Source # 
Instance details

Defined in Test.StateMachine.Types.History

Methods

showsPrec :: Int -> Pid -> ShowS #

show :: Pid -> String #

showList :: [Pid] -> ShowS #

data HistoryEvent cmd resp Source #

Constructors

Invocation !(cmd Concrete) !(Set Var) 
Response !(resp Concrete) 

data Operation cmd resp Source #

An operation packs up an invocation event with its corresponding response event.

Constructors

Operation (cmd Concrete) (resp Concrete) Pid 

makeOperations :: History' cmd resp -> [Operation cmd resp] Source #

interleavings :: [(Pid, HistoryEvent cmd resp)] -> Forest (Operation cmd resp) Source #

Given a history, return all possible interleavings of invocations and corresponding response events.