TestLensCauseOps

zio.test.`package`.TestLensCauseOps
final implicit class TestLensCauseOps[E](self: TestLens[Cause[E]]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def die: TestLens[Throwable]

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

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

Attributes

def failure: TestLens[E]

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

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

Attributes

def interrupted: TestLens[Boolean]

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

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

Attributes