Result

org.specs2.execute.Result
See theResult companion class
object Result

Attributes

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

Members list

Type members

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 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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Returns

the accumulation of all results, without success messages

def result(test: Boolean, successMessage: => String, failureMessage: => String, expected: => String, details: Details): Result

Attributes

Returns

a Success or a Failure

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

Attributes

Returns

a Success or a Failure

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

Attributes

Returns

a Success or a Failure

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

Attributes

Returns

a Success or a Failure

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

Attributes

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

Attributes

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

Attributes

This monoid only evaluates the second argument

This monoid only evaluates the second argument

Attributes

Givens

Givens

given 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

Attributes

given derived$CanEqual: CanEqual[Result, Result]
given resultAsResult[R <: Result]: resultAsResult[R]

implicit typeclass instance to create examples from Results

implicit typeclass instance to create examples from Results

Attributes