package mock
- Alphabetic
- Public
- Protected
Type Members
- 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
An
ArgumentExpectation[R, I, A]represents an expectation on inputIarguments for environmentRthat returns an effect that may produce a singleA. - sealed trait Expectation[R <: Has[_]] extends AnyRef
An
Expectation[R]is an immutable tree structure that represents expectations on environmentR. - final case class Invocation[R <: Has[_], I, A](method: Method[R, I, A], input: I, output: A) extends Product with Serializable
An
Invocation[R, I, A]models a single invocation of aMethod[R, I, A], including both the input to the method invocationIand the output from the method invocationA. - abstract class Method[R <: Has[_], I, A] extends AnyRef
A
Model[R, I, A]represents a capability of environmentRthat takes an inputIand returns an effect that may produce a singleA. - macro class Mockable[A] extends Annotation with StaticAnnotation
- Annotations
- @compileTimeOnly("enable macro paradise to expand macro annotations")
- trait Proxy extends AnyRef
A
Proxyprovides the machinery to map mocked invocations to predefined results and check some constraints on the way. - sealed trait ReturnExpectation[-I, +E, +A] extends AnyRef
A
ReturnExpectation[-I, E, +A]represents an expectation on output that given input argumentsIreturns an effect that may fail with an errorEor produce a singleA.
Value Members
- object Expectation
- object MockClock
- object MockConsole
- object MockRandom
- object MockSystem
- object ReturnExpectation