Expectation

zio.mock.Expectation
See theExpectation companion class
object Expectation

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def failure[E](failure: E)(implicit trace: Trace): Fail[Any, E]

Expectation result failing with E.

Expectation result failing with E.

Attributes

def failureF[I, E](f: I => E)(implicit trace: Trace): Fail[I, E]

Maps the input arguments I to expectation result failing with E.

Maps the input arguments I to expectation result failing with E.

Attributes

def failureZIO[I, E](f: I => IO[E, Nothing])(implicit trace: Trace): Fail[I, E]

Effectfully maps the input arguments I to expectation result failing with E.

Effectfully maps the input arguments I to expectation result failing with E.

Attributes

def never(implicit trace: Trace): Succeed[Any, Nothing]

Expectation result computing forever.

Expectation result computing forever.

Attributes

def unit(implicit trace: Trace): Succeed[Any, Unit]

Expectation result succeeding with Unit.

Expectation result succeeding with Unit.

Attributes

def value[A](value: A)(implicit trace: Trace): Succeed[Any, A]

Expectation result succeeding with A.

Expectation result succeeding with A.

Attributes

def valueF[I, A](f: I => A)(implicit trace: Trace): Succeed[I, A]

Maps the input arguments I to expectation result succeeding with A.

Maps the input arguments I to expectation result succeeding with A.

Attributes

def valueZIO[I, A](f: I => IO[Nothing, A]): Succeed[I, A]

Effectfully maps the input arguments I expectation result succeeding with A.

Effectfully maps the input arguments I expectation result succeeding with A.

Attributes

Implicits

Implicits

implicit def toLayer[R : Tag](trunk: Expectation[R])(implicit evidence$15: Tag[R], trace: Trace): ULayer[R]

Implicitly converts Expectation to ZLayer mock environment.

Implicitly converts Expectation to ZLayer mock environment.

Attributes