org.specs2.execute.ResultImplicits
See theResultImplicits companion trait
object ResultImplicits extends ResultImplicits
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait ResultImplicitstrait ResultLogicalCombinatorstrait Resultsclass Objecttrait Matchableclass AnyShow all
- Self type
-
ResultImplicits.type
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- ResultLogicalCombinators
- Supertypes
-
class Objecttrait Matchableclass Any
object given_Conversion_Boolean_Result extends Conversion[Boolean, Result]
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
Givens
Inherited givens
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
Attributes
- Inherited from:
- Results
Extensions
Inherited extensions
extension [R1, R2](r1: => R1)(using evidence$5: AsResult[R1], evidence$6: AsResult[R2])
Two results r1 and r2 are equivalent if r1.isSuccess == r2.isSuccess
Two results r1 and r2 are equivalent if r1.isSuccess == r2.isSuccess
Attributes
- Inherited from:
- ResultImplicits
extension [T, R](t: T => R)(using evidence$1: AsResult[R])
apply the function to the value and convert to a Result
extension [T, R](t: T => R)(using evidence$3: AsResult[R])
Attributes
- Returns
-
the aggregation of all results
- Inherited from:
- ResultImplicits
extension [T, R](t: T => R)(using evidence$4: AsResult[R])
Attributes
- Returns
-
success if at least one result is a success
- Inherited from:
- ResultImplicits
extension [T, R](t: T => R)(using evidence$2: AsResult[R])
Attributes
- Returns
-
the "and" of all results, stopping after the first failure
- Inherited from:
- ResultImplicits
Implicits
Inherited implicits
Attributes
- Inherited from:
- ResultLogicalCombinators
Attributes
- Inherited from:
- ResultLogicalCombinators
In this article