Result

object Result
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

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 ResultFailuresMonoid(separator: String): Monoid[Result]

extract failure details from a Result if it is a Failure

extract failure details from a Result if it is a Failure

def disjunctionErrorToResult(error: Either[Throwable, String]): Result
def forall[T, R](seq: Seq[T])(f: T => R)(using evidence$2: AsResult[R]): Result

this returns a result which is a summary of all the results according to the ResultFailureMonoid

this returns a result which is a summary of all the results according to the ResultFailureMonoid

def forallWhen[T, R](seq: Seq[T])(f: PartialFunction[T, R])(using evidence$3: AsResult[R]): Result

this returns a result which is a summary of all the results according to the ResultFailureMonoid

this returns a result which is a summary of all the results according to the ResultFailureMonoid

def foreach[T, R](seq: Seq[T])(f: T => R)(using evidence$1: AsResult[R]): Result

this allows the creation of expectations with a for loop it returns the first result which is an issue or the last success

this allows the creation of expectations with a for loop it returns the first result which is an issue or the last success

def issues(results: Seq[Result], separator: String): SelfType
Returns

the accumulation of all results, without success messages

def result(test: Boolean, message: => String, expected: => String, details: Details): Result
Returns

a Success or a Failure

def result(test: Boolean, message: => String, details: Details): Result
Returns

a Success or a Failure

def result(test: Boolean, message: => String, expected: String, actual: String): Result
Returns

a Success or a Failure

def result(test: Boolean, message: => String): Result
Returns

a Success or a Failure

def resultOrSuccess(t: Any): Result
def unit(u: => Unit): Result

the result of a side-effecting block

the result of a side-effecting block

Concrete fields

final lazy

This monoids "absorbs" success messages if the result of the |+| is not a success

This monoids "absorbs" success messages if the result of the |+| is not a success

val ResultMonoid: Monoid[Result]

This monoids keeps success messages if the result of the |+| is not a success

This monoids keeps success messages if the result of the |+| is not a success

This monoid only evaluates the second argument

This monoid only evaluates the second argument

lazy

Givens

Givens

implicit typeclass instance to create examples from Results

implicit typeclass instance to create examples from Results