Packages

  • package root
    Definition Classes
    root
  • package zio
    Definition Classes
    root
  • package test

    _ZIO Test_ is a featherweight testing library for effectful programs.

    _ZIO Test_ is a featherweight testing library for effectful programs.

    The library imagines every spec as an ordinary immutable value, providing tremendous potential for composition. Thanks to tight integration with ZIO, specs can use resources (including those requiring disposal), have well- defined linear and parallel semantics, and can benefit from a host of ZIO combinators.

    import zio.test._
    import zio.clock.nanoTime
    import Assertion.isGreaterThan
    
    object MyTest extends DefaultRunnableSpec {
      suite("clock") {
        testM("time is non-zero") {
          assertM(nanoTime, isGreaterThan(0))
        }
      }
    }
    Definition Classes
    zio
  • package mock
    Definition Classes
    test
  • Expectation
  • Method
  • Mock
  • MockClock
  • MockConsole
  • MockException
  • MockRandom
  • MockSpec
  • MockSystem
  • Mockable

object MockSpec

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MockSpec
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def expect[R, E, A, B](m: Method[A, B])(a: Assertion[A])(f: (A) => B): MockSpec[R, E, A]

    Creates a mock specification expecting method m to be called with arguments satisfying assertion a and returning value produced by function f using input arguments.

  9. final def expectAny[R, E, B](m: Method[Any, B])(f: (Any) => B): MockSpec[R, E, Any]

    Creates a mock specification expecting method m to be called with any arguments and returning value produced by function f using input arguments.

  10. final def expectAnyM[R, E, B](m: Method[Any, B])(v: (Any) => IO[E, B]): MockSpec[R, E, Any]

    Creates a mock specification expecting method m to be called with any arguments and returning value produced by effect f using input arguments.

  11. final def expectAnyM_[R, E, B](m: Method[Any, B])(f: => IO[E, B]): MockSpec[R, E, Any]

    Creates a mock specification expecting method m to be called with any arguments and returning value produced by effect f.

  12. final def expectAny_[R, E, B](m: Method[Any, B])(v: => B): MockSpec[R, E, Any]

    Creates a mock specification expecting method m to be called with any arguments and returning value v.

  13. final def expectIn[R, E, A](m: Method[A, Unit])(a: Assertion[A]): MockSpec[R, E, A]

    Creates a mock specification expecting method m to be called with arguments satisfying assertion a and returning unit.

  14. final def expectM[R, E, A, B](m: Method[A, B])(a: Assertion[A])(f: (A) => IO[E, B]): MockSpec[R, E, A]

    Creates a mock specification expecting method m to be called with arguments satisfying assertion a and returning value produced by effect f using input arguments.

  15. final def expectM_[R, E, A, B](m: Method[A, B])(a: Assertion[A])(f: => IO[E, B]): MockSpec[R, E, A]

    Creates a mock specification expecting method m to be called with arguments satisfying assertion a and returning value produced by effect f.

  16. final def expectOut[R, E, B](m: Method[Unit, B])(v: => B): MockSpec[R, E, Unit]

    Creates a mock specification expecting method m to be called with no arguments and returning value v.

  17. final def expectOutM[R, E, B](m: Method[Unit, B])(f: => IO[E, B]): MockSpec[R, E, Unit]

    Creates a mock specification expecting method m to be called with no arguments and returning value produced by effect f.

  18. final def expect_[R, E, A, B](m: Method[A, B])(a: Assertion[A])(v: => B): MockSpec[R, E, A]

    Creates a mock specification expecting method m to be called with arguments satisfying assertion a and returning value v.

  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def succeed[A](a: A): MockSpec[Any, Nothing, A]

    Creates a mock specification that holds the final value a produced by specification.

    Creates a mock specification that holds the final value a produced by specification. Models completed specification with no further expectations.

  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. implicit final def toManagedEnv[R, E, A](spec: MockSpec[R, E, A])(implicit mockable: Mockable[R]): Managed[Nothing, R]

    Automatically converts specification to managed environement.

  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped