AdvanceSlotCommand

scalus.testing.ContractScalaCheckCommands.AdvanceSlotCommand
case class AdvanceSlotCommand(slots: Long) extends Command

Command to advance the slot in the emulator.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Command
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

override type Result = Unit

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.

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

Value members

Concrete methods

override 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

Definition Classes
override def postCondition(state: State, result: Try[Result]): 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

Definition Classes
override 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

Definition Classes
override def run(sut: Sut): Unit

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.

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

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product