|
scalacheck 1.6 API
|
|
org/scalacheck/Commands.scala]
trait
Command
extends AnyRef| Value Summary | |
val
|
postConditions
: scala.collection.mutable.ListBuffer[(State, State, Any) => Prop]
A postcondition is a function that
takes three parameters, s0, s1 and r. s0 is the abstract state before
the command was run, s1 is the abstract state after the command was
run, and r is the result from the command's run
method. The postcondition function should return a Boolean (or
a Prop instance) that says if the condition holds or not. You can add several
conditions to the postConditions list.
|
val
|
preConditions
: scala.collection.mutable.ListBuffer[(State) => Boolean]
A precondition is a function that
takes the current abstract state as parameter and returns a boolean
that says if the precondition is fulfilled or not. You can add several
conditions to the precondition list
|
| Method Summary | |
abstract def
|
nextState (s : State) : State |
def
|
postCondition
: (State, State, Any) => Prop
Returns all postconditions merged into a single function
|
def
|
postCondition_= (f : (State, Any) => Prop) : Unit |
def
|
postCondition_= (f : (State, State, Any) => Prop) : Unit |
def
|
preCondition
: (State) => Boolean
Returns all preconditions merged into a single function
|
def
|
preCondition_= (f : (State) => Boolean) : Unit |
abstract def
|
run (s : State) : Any |
protected[Commands] def
|
run_
(s : State) : Any
Used internally.
|
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Value Details |
val
preConditions : scala.collection.mutable.ListBuffer[(State) => Boolean]
val
postConditions : scala.collection.mutable.ListBuffer[(State, State, Any) => Prop]
| Method Details |
def
preCondition_=(f : (State) => Boolean) : Unit
preConditions += ... instead.
def
postCondition_=(f : (State, Any) => Prop) : Unit
postConditions += ... instead.postConditions += ... instead.|
scalacheck 1.6 API
|
|