Package

zio.test

mock

Permalink

package mock

Visibility
  1. Public
  2. All

Type Members

  1. final case class ArgumentExpectation[R <: Has[_], I, A](method: Method[R, I, A], assertion: Assertion[I])(implicit evidence$1: zio.Tagged[R]) extends Product with Serializable

    Permalink

    An ArgumentExpectation[R, I, A] represents an expectation on input I arguments for environment R that returns an effect that may produce a single A.

  2. sealed trait Expectation[R <: Has[_]] extends AnyRef

    Permalink

    An Expectation[R] is an immutable tree structure that represents expectations on environment R.

  3. final case class Invocation[R <: Has[_], I, A](method: Method[R, I, A], input: I, output: A) extends Product with Serializable

    Permalink

    An Invocation[R, I, A] models a single invocation of a Method[R, I, A], including both the input to the method invocation I and the output from the method invocation A.

  4. abstract class Method[R <: Has[_], I, A] extends AnyRef

    Permalink

    A Model[R, I, A] represents a capability of environment R that takes an input I and returns an effect that may produce a single A.

  5. macro class Mockable[A] extends Annotation with StaticAnnotation

    Permalink
    Annotations
    @compileTimeOnly( ... )
  6. trait Proxy extends AnyRef

    Permalink

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

  7. sealed trait ReturnExpectation[-I, +E, +A] extends AnyRef

    Permalink

    A ReturnExpectation[-I, E, +A] represents an expectation on output that given input arguments I returns an effect that may fail with an error E or produce a single A.

Value Members

  1. object Expectation

    Permalink
  2. object MockClock

    Permalink
  3. object MockConsole

    Permalink
  4. object MockRandom

    Permalink
  5. object MockSystem

    Permalink
  6. object ReturnExpectation

    Permalink
  7. package internal

    Permalink

Ungrouped