AsResult

org.specs2.execute.AsResult
See theAsResult companion trait
object AsResult

Attributes

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

Members list

Value members

Concrete methods

def apply[R : AsResult](r: => R): Result

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

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

Attributes

def effectively[R : AsResult](r: => R): Result

Attributes

Returns

a Result but throw exceptions if it is not a success

def safely[R : AsResult](r: => R): Result

Attributes

Returns

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

Implicits

Implicits

implicit def asResult[R](implicit 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 def booleanAsResult: AsResult[Boolean]

implicit typeclass instance to create results from Booleans

implicit typeclass instance to create results from Booleans

Attributes

implicit typeclass instance for error effect errors

implicit typeclass instance for error effect errors

Attributes