Packages

o

hedgehog.examples.state

TurnstileTest

object TurnstileTest extends Properties

An effectful turnstile

Coin Push +-------------+ +-----+ | | +-----+ | | | v v | | +-+---+--+ +--+-----+-+ | | | | | | | | | Locked | | Unlocked | | | | | | | | | +-+---+--+ +--+-----+-+ | | | | | +-----+ | | +-----+ +-------------+ Coin Push

- States: Locked/Unlocked (represented by the boxes) - Transitions: Coin/Push (represented by the arrows)

https://teh.id.au/posts/2017/07/15/state-machine-testing/index.html

Linear Supertypes
Properties, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TurnstileTest
  2. Properties
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class State(state: TurnstileState) extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def commandCoin(turnstile: Turnstile): CommandIO[State]
  7. def commandPushLocked(turnstile: Turnstile): CommandIO[State]
  8. def commandPushUnlocked(turnstile: Turnstile): CommandIO[State]
  9. def commands(turnstile: Turnstile): List[CommandIO[State]]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def main(args: Array[String]): Unit

    Allows the implementing test to be run separately without SBT

    Allows the implementing test to be run separately without SBT

    Definition Classes
    Properties
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def testParallel: Property
  21. def testSequential: Property
  22. def tests: List[Prop]
    Definition Classes
    TurnstileTestProperties
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. object State extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Properties

Inherited from AnyRef

Inherited from Any

Ungrouped