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

Safe HaskellNone
LanguageHaskell2010

Test.StateMachine.Lockstep.Simple

Contents

Synopsis

Test type-level parameters

type family MockState t :: Type Source #

data family Cmd t :: Type -> Type Source #

data family Resp t :: Type -> Type Source #

data family RealHandle t :: Type Source #

data family MockHandle t :: Type Source #

type family Test (f :: Type -> Type) :: Type where ... Source #

Equations

Test (Cmd t) = t 
Test (Resp t) = t 

Test term-level parameters

Handle instantiation

newtype At f r Source #

Constructors

At 

Fields

type (:@) f r = At f r Source #

Model state

data Model t r Source #

Constructors

Model 

Running the tests

prop_sequential Source #

Arguments

:: StateMachineTest t 
-> Maybe Int

(Optional) minimum number of commands

-> Property 

prop_parallel Source #

Arguments

:: StateMachineTest t 
-> Maybe Int

(Optional) minimum number of commands

-> Property 

Translate to n-ary model model