Live

zio.test.Live
See theLive companion trait
object Live

Attributes

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

Members list

Type members

Classlikes

final case class Test(zenv: ZEnvironment[Clock & Console & System & Random]) extends Live

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Live
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def live[R, E, A](zio: ZIO[R, E, A])(implicit trace: Trace): ZIO[R, E, A]

Provides a workflow with the "live" default ZIO services.

Provides a workflow with the "live" default ZIO services.

Attributes

def withLive[R, E, E1, A, B](zio: ZIO[R, E, A])(f: ZIO[R, E, A] => ZIO[R, E1, B])(implicit trace: Trace): ZIO[R, E1, B]

Runs a transformation function with the live default ZIO services while ensuring that the workflow itself is run with the test services.

Runs a transformation function with the live default ZIO services while ensuring that the workflow itself is run with the test services.

Attributes

Concrete fields

val default: ZLayer[Clock & Console & System & Random, Nothing, Live]

Constructs a new Live service that implements the Live interface. This typically should not be necessary as the TestEnvironment already includes the Live service but could be useful if you are mixing in interfaces to create your own environment type.

Constructs a new Live service that implements the Live interface. This typically should not be necessary as the TestEnvironment already includes the Live service but could be useful if you are mixing in interfaces to create your own environment type.

Attributes

val tag: Tag[Live]