Result

object Result
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Result.type

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]
def disjunctionErrorToResult(error: Either[Throwable, String]): Result
def forall[T, R : AsResult](seq: Seq[T])(f: T => 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 : AsResult](seq: Seq[T])(f: T => 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 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

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

Implicits

Implicits

implicit val ResultFailureMonoid: Monoid[Result]

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

implicit def resultAsResult[R <: Result]: AsResult[R]

implicit typeclass instance to create examples from Results

implicit typeclass instance to create examples from Results