TestFailure

zio.test.TestFailure
See theTestFailure companion class
object TestFailure

Attributes

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

Members list

Type members

Classlikes

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

Attributes

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class TestFailure[E]
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

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