MatchResultCombinator

org.specs2.matcher.MatchResultLogicalCombinators.MatchResultCombinator
class MatchResultCombinator[T](mr: => MatchResult[T])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def and[S >: T](other: => MatchResult[S]): MatchResult[S]

Attributes

Returns

the logical and of two results

def and(other: => Result): Result

Attributes

Returns

the logical and of a MatchResult and a Result

def and(other: Matcher[T]): MatchResult[T]

apply the matcher and return the logical and of two results

apply the matcher and return the logical and of two results

Attributes

def iff(condition: Boolean): MatchResult[T]

when the condition is true the result it taken as is, when it's false, take its negation

when the condition is true the result it taken as is, when it's false, take its negation

Attributes

def not: MatchResult[T]

Attributes

Returns

the negation of this result

def or[S >: T](other: => MatchResult[S]): MatchResult[S]

Attributes

Returns

the logical or of two results

def or(other: => Result): Result

Attributes

Returns

the logical or of a MatchResult and a Result

def or(other: Matcher[T]): MatchResult[T]

apply the matcher and return the logical or of two results

apply the matcher and return the logical or of two results

Attributes

def unless(condition: Boolean, m: String): MatchResult[T]

only consider this result if the condition is false

only consider this result if the condition is false

Attributes

def when(condition: Boolean, m: String): MatchResult[T]

only consider this result if the condition is true

only consider this result if the condition is true

Attributes

Concrete fields

lazy val expectable: Expectable[T]

if there was an exception on evaluating the result, no expectable can be accessed

if there was an exception on evaluating the result, no expectable can be accessed

Attributes

lazy val result: Either[Exception, MatchResult[T]]

Either Left(exception) => in case of an error or Right(result) => normal result

Either Left(exception) => in case of an error or Right(result) => normal result

Attributes