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 {
      def spec = suite("clock")(
        test("time is non-zero") {
          for {
            time <- Live.live(nanoTime)
          } yield assertTrue(time >= 0)
        }
      )
    }
    Definition Classes
    zio
  • package mock
    Definition Classes
    test
  • package internal
    Definition Classes
    mock
  • Capability
  • Expectation
  • Mock
  • MockClock
  • MockConsole
  • MockRandom
  • MockSystem
  • Proxy
  • Result
  • mockable

abstract class Proxy extends AnyRef

A Proxy provides the machinery to map mocked invocations to predefined results and check some constraints on the way.

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

Instance Constructors

  1. new Proxy()

Abstract Value Members

  1. abstract def invoke[RIn, ROut, Input, Error, Value](capability: Capability[RIn, Input, Error, Value], input: Input): ZIO[ROut, Error, Value]

Concrete 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 apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R, s: S, t: T, u: U, v: V): ZIO[ROut, Error, Value]
  5. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R, s: S, t: T, u: U): ZIO[ROut, Error, Value]
  6. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R, s: S, t: T): ZIO[ROut, Error, Value]
  7. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R, s: S): ZIO[ROut, Error, Value]
  8. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q, r: R): ZIO[ROut, Error, Value]
  9. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q): ZIO[ROut, Error, Value]
  10. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P): ZIO[ROut, Error, Value]
  11. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O): ZIO[ROut, Error, Value]
  12. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M, N](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M, N), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N): ZIO[ROut, Error, Value]
  13. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L, M](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L, M), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M): ZIO[ROut, Error, Value]
  14. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K, L](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K, L), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L): ZIO[ROut, Error, Value]
  15. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J, K](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J, K), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K): ZIO[ROut, Error, Value]
  16. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I, J](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I, J), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J): ZIO[ROut, Error, Value]
  17. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H, I](capability: Capability[RIn, (A, B, C, D, E, F, G, H, I), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I): ZIO[ROut, Error, Value]
  18. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G, H](capability: Capability[RIn, (A, B, C, D, E, F, G, H), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H): ZIO[ROut, Error, Value]
  19. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F, G](capability: Capability[RIn, (A, B, C, D, E, F, G), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F, g: G): ZIO[ROut, Error, Value]
  20. final def apply[RIn, ROut, Error, Value, A, B, C, D, E, F](capability: Capability[RIn, (A, B, C, D, E, F), Error, Value], a: A, b: B, c: C, d: D, e: E, f: F): ZIO[ROut, Error, Value]
  21. final def apply[RIn, ROut, Error, Value, A, B, C, D, E](capability: Capability[RIn, (A, B, C, D, E), Error, Value], a: A, b: B, c: C, d: D, e: E): ZIO[ROut, Error, Value]
  22. final def apply[RIn, ROut, Error, Value, A, B, C, D](capability: Capability[RIn, (A, B, C, D), Error, Value], a: A, b: B, c: C, d: D): ZIO[ROut, Error, Value]
  23. final def apply[RIn, ROut, Error, Value, A, B, C](capability: Capability[RIn, (A, B, C), Error, Value], a: A, b: B, c: C): ZIO[ROut, Error, Value]
  24. final def apply[RIn, ROut, Error, Value, A, B](capability: Capability[RIn, (A, B), Error, Value], a: A, b: B): ZIO[ROut, Error, Value]
  25. final def apply[RIn, ROut, Error, Value, A](capability: Capability[RIn, A, Error, Value], a: A): ZIO[ROut, Error, Value]
  26. final def apply[RIn, ROut, Error, Value](capability: Capability[RIn, Unit, Error, Value]): ZIO[ROut, Error, Value]
  27. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  28. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  31. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped