TestFailure

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

final case class Assertion(result: TestResult, annotations: TestAnnotationMap) extends TestFailure[Nothing]
final case class Runtime[+E](cause: Cause[E], annotations: TestAnnotationMap) extends TestFailure[E]

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

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.

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.

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.

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

Constructs a runtime failure with the specified cause.

Constructs a runtime failure with the specified cause.