TestFailure

zio.test.TestFailure$
See theTestFailure companion class

Attributes

Companion:
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

final case class Assertion(result: TestResult, annotations: TestAnnotationMap) extends TestFailure[Nothing]

Attributes

Graph
Supertypes
trait Product
trait Equals
class TestFailure[Nothing]
class Object
trait Matchable
class Any
final case class Runtime[+E](cause: Cause[E], annotations: TestAnnotationMap) extends TestFailure[E]

Attributes

Graph
Supertypes
trait Product
trait Equals
class TestFailure[E]
class Object
trait Matchable
class Any

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def assertion(result: TestResult): TestFailure[Nothing]

Constructs an assertion failure with the specified result.

Constructs an assertion failure with the specified result.

Attributes

def die(t: Throwable): TestFailure[Nothing]

Constructs a runtime failure that dies with the specified Throwable.

Constructs a runtime failure that dies with the specified Throwable.

Attributes

def fail[E](e: E): TestFailure[E]

Constructs a runtime failure that fails with the specified error.

Constructs a runtime failure that fails with the specified error.

Attributes

def failCause[E](cause: Cause[E]): TestFailure[E]

Constructs a runtime failure with the specified cause.

Constructs a runtime failure with the specified cause.

Attributes