NoOp

org.scalacheck.commands.Commands.NoOp
case object NoOp extends Command

A command that doesn't do anything

Attributes

Source
Commands.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Command
class Object
trait Matchable
class Any
Show all
Self type
NoOp.type

Members list

Type members

Types

type Result = Null

An abstract representation of the result of running this command in the system under test.

An abstract representation of the result of running this command in the system under test. The Result type should be immutable and it should encode everything about the command run that is necessary to know in order to correctly implement the postCondition method.

Attributes

Source
Commands.scala

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Value members

Concrete methods

def nextState(state: State): State

Returns a new State instance that represents the state of the system after this command has run, given the system was in the provided state before the run.

Returns a new State instance that represents the state of the system after this command has run, given the system was in the provided state before the run.

Attributes

Source
Commands.scala
def postCondition(state: State, result: Try[Null]): Prop

Postcondition that decides if this command produced the correct result or not, given the system was in the provided state before the command ran.

Postcondition that decides if this command produced the correct result or not, given the system was in the provided state before the command ran.

Attributes

Source
Commands.scala
def preCondition(state: State): Boolean

Precondition that decides if this command is allowed to run when the system under test is in the provided state.

Precondition that decides if this command is allowed to run when the system under test is in the provided state.

Attributes

Source
Commands.scala
def run(sut: Sut): Result

Executes the command in the system under test, and returns a representation of the result of the command run.

Executes the command in the system under test, and returns a representation of the result of the command run. The result value is later used for verifying that the command behaved according to the specification, by the postCondition method.

Attributes

Source
Commands.scala

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product