TestLensExitOps

zio.test.`package`.TestLensExitOps
final implicit class TestLensExitOps[E, A](self: TestLens[Exit[E, A]]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def cause: TestLens[Cause[E]]

Transforms an Exit to its underlying Cause if it has one, otherwise fails.

Transforms an Exit to its underlying Cause if it has one, otherwise fails.

Attributes

def die: TestLens[Throwable]

Transforms an Exit to a scala.Throwable if it is a die, otherwise fails.

Transforms an Exit to a scala.Throwable if it is a die, otherwise fails.

Attributes

def failure: TestLens[E]

Transforms an Exit to its failure type (E) if it is a fail, otherwise fails.

Transforms an Exit to its failure type (E) if it is a fail, otherwise fails.

Attributes

def interrupted: TestLens[Boolean]

Transforms an Exit to a boolean value representing whether or not it was interrupted.

Transforms an Exit to a boolean value representing whether or not it was interrupted.

Attributes

def success: TestLens[A]

Transforms an Exit to its success type (A) if it is a succeed, otherwise fails.

Transforms an Exit to its success type (A) if it is a succeed, otherwise fails.

Attributes