TestLensExitOps

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

Attributes

Source
package.scala
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

Source
package.scala

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

Source
package.scala
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

Source
package.scala

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

Source
package.scala
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

Source
package.scala