zio.test.mock

Type members

Classlikes

object Capability
sealed abstract class Expectation[R <: Has[_]]

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

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

Companion:
object
Companion:
class
abstract class Mock[R <: Has[_]]

A Mock[R] represents a mockable environment R.

A Mock[R] represents a mockable environment R.

Companion:
object
object Mock
Companion:
class
object MockClock extends Mock[Clock]
object MockConsole extends Mock[Console]
object MockRandom extends Mock[Random]
object MockSystem extends Mock[System]
abstract class Proxy

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

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

sealed abstract class Result[-I, +E, +A]

A Result[-I, +E, +A] represents the value or failure that will be returned by mock expectation when invoked.

A Result[-I, +E, +A] represents the value or failure that will be returned by mock expectation when invoked.

Companion:
object
object Result
Companion:
class

Inherited types

type BuildFrom[-From, -A, +C] = BuildFrom[From, A, C]

Value members

Deprecated and Inherited methods

def buildFromAny[Element, Collection <: ([Element] =>> Iterable[Element] & IterableOps[Any, LazyRef(...), Any])]: BuildFrom[Collection[Any], Element, Collection[Element]]
Deprecated
Inherited from:
BuildFromCompat (hidden)

Implicits

Inherited implicits

implicit def buildFromNothing[A, Collection <: ([Element] =>> Iterable[Element] & IterableOps[A, LazyRef(...), _])]: BuildFrom[Collection[A], Nothing, Collection[Nothing]]