Expectation

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def failure[E](failure: E): Fail[Any, E]

Expectation result failing with E.

Expectation result failing with E.

def failureF[I, E](f: I => E): 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.

def failureM[I, E](f: I => IO[E, Nothing]): 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.

def never: Succeed[Any, Nothing]

Expectation result computing forever.

Expectation result computing forever.

def unit: Succeed[Any, Unit]

Expectation result succeeding with Unit.

Expectation result succeeding with Unit.

def value[A](value: A): Succeed[Any, A]

Expectation result succeeding with A.

Expectation result succeeding with A.

def valueF[I, A](f: I => A): 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.

def valueM[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.

Implicits

Implicits

implicit def toLayer[R <: Has[_] : Tag](trunk: Expectation[R]): ULayer[R]

Implicitly converts Expectation to ZLayer mock environment.

Implicitly converts Expectation to ZLayer mock environment.