Trait

hedgehog.state

Command

Related Doc: package state

Permalink

trait Command[S, I, O] extends CommandIO[S]

The specification for the expected behaviour of an Action.

Linear Supertypes
CommandIO[S], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Command
  2. CommandIO
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Input = I

    Permalink
    Definition Classes
    CommandCommandIO
  2. type Output = O

    Permalink
    Definition Classes
    CommandCommandIO

Abstract Value Members

  1. abstract def ensure(env: Environment, before: S, after: S, i: Input, o: Output): core.Result

    Permalink

    A post-condition for a command that must be verified for the command to be considered a success.

  2. abstract def execute(env: Environment, s: Input): Either[String, Output]

    Permalink

    Executes a command using the arguments generated by gen.

  3. abstract def gen(s: S): Option[GenT[Input]]

    Permalink

    A generator which provides random arguments for a command.

    A generator which provides random arguments for a command. If the command cannot be executed in the current state, it should return None.

  4. abstract def update(s0: S, i: Input, o: Var[Output]): S

    Permalink

    Updates the model state, given the input and output of the command.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def command: Command[S, Input, Output]

    Permalink
    Definition Classes
    CommandCommandIO
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def renderInput(i: Input): String

    Permalink

    Render the input for displaying in test output.

    Render the input for displaying in test output.

    The default is to use toString, but optionally can support being overridden.

  17. def require(s: S, i: Input): Boolean

    Permalink

    A pre-condition for a command that must be verified before the command can be executed.

    A pre-condition for a command that must be verified before the command can be executed. This is mainly used during shrinking to ensure that it is still OK to run a command despite the fact that some previously executed commands may have been removed from the sequence.

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. def vars(i: Input): List[Var[_]]

    Permalink

    Return a list of _all_ Var instances referenced by Input

    Return a list of _all_ Var instances referenced by Input

    Failure to do this correctly will result in missing variable errors during shrinking.

  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CommandIO[S]

Inherited from AnyRef

Inherited from Any

Ungrouped