ResultFunctionVerification

org.specs2.execute.ResultImplicits.ResultFunctionVerification
class ResultFunctionVerification[T, R](t: T => R)(implicit evidence$2: AsResult[R])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(value: T): Result

apply the function to the value and convert to a Result

apply the function to the value and convert to a Result

Attributes

def atLeastOnce[S <: Iterable[T]](seq: S): Result

Attributes

Returns

success if at least one result is a success

def forall[S <: Iterable[T]](seq: S): Result

Attributes

Returns

the "and" of all results, stopping after the first failure

def foreach[S <: Iterable[T]](seq: S): Result

Attributes

Returns

the aggregation of all results