Skip to content

Latest commit

 

History

History
108 lines (37 loc) · 1.67 KB

triq_statem.md

File metadata and controls

108 lines (37 loc) · 1.67 KB

Module triq_statem

Module triq_statem

commands/1
prop_statem/1Boiler-plate property for testing state machines.
run_commands/2
run_commands/3
state_after/2Evaluate command list, and return final state.

Function Details

commands/1

commands(Module) -> any()

prop_statem/1

prop_statem(Module) -> any()

Boiler-plate property for testing state machines.

prop_statem(Module) ->
?FORALL(Commands, commands(Module),
begin
{_,_,ok} = run_commands(Module, Commands),
true
end).

run_commands/2

run_commands(Module, Commands) -> any()

run_commands/3

run_commands(Module, Commands, Env) -> any()

state_after/2

state_after(Module, Commands) -> any()

Evaluate command list, and return final state.

Given a Module and Commands, a value picked from the domain triq_statem:commands(Module)

Generated by EDoc, Nov 7 2010, 11:39:46.