AsResult

org.specs2.execute.AsResult
See theAsResult companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
AsResult.type

Members list

Type members

Classlikes

object booleanAsResult extends AsResult[Boolean]

implicit typeclass instance to create results from Booleans

implicit typeclass instance to create results from Booleans

Attributes

Supertypes
trait AsResult[Boolean]
class Object
trait Matchable
class Any
Self type

Inherited classlikes

object given_AsResult_Unit extends AsResult[Unit]

typeclass instance for types which are convertible to Result

typeclass instance for types which are convertible to Result

Attributes

Inherited from:
AsResultLowImplicits
Supertypes
trait AsResult[Unit]
class Object
trait Matchable
class Any

Value members

Inherited methods

def apply[R](r: => R)(using evidence$2: AsResult[R]): Result

nicer syntax to use the AsResult syntax: AsResult(r)

nicer syntax to use the AsResult syntax: AsResult(r)

Attributes

Inherited from:
AsResultLowImplicits
def effectively[R](r: => R)(using evidence$3: AsResult[R]): Result

Attributes

Returns

a Result but throw exceptions if it is not a success

Inherited from:
AsResultLowImplicits
def safely[R](r: => R)(using evidence$4: AsResult[R]): Result

Attributes

Returns

a Result always, even when there are specs2 exceptions (when using ThrownExpectations)

Inherited from:
AsResultLowImplicits

Givens

Givens

given asResult[R](using convert: R => Result): asResult[R]

typeclass instance for types which are convertible to Result

typeclass instance for types which are convertible to Result

Attributes

implicit typeclass instance to create results from Booleans

implicit typeclass instance to create results from Booleans

Attributes

given resultSeq[R](using evidence$1: AsResult[R]): resultSeq[R]

typeclass instance for lists of results

typeclass instance for lists of results

Attributes

Inherited givens

typeclass instance for types which are convertible to Result

typeclass instance for types which are convertible to Result

Attributes

Inherited from:
AsResultLowImplicits