Matcher

org.specs2.matcher.Matcher
See theMatcher companion trait
object Matcher extends MatcherCreation

Attributes

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

Members list

Value members

Concrete methods

def apply[T](f: T => (Boolean, String)): Matcher[T]
def apply[T](f: T => (Boolean, String, String, String)): Matcher[T]
def apply[T, R](f: T => R)(using evidence$1: AsResult[R]): Matcher[T]
def apply[T, R](f: T => Matcher[R])(using evidence$2: AsResult[R]): (=> T) => Matcher[R]

Givens

Inherited givens

given given_Conversion_Function_Matcher[T]: given_Conversion_Function_Matcher[T]

This method transforms a function returning a triplet (condition, message, actual, expected) to a Matcher

This method transforms a function returning a triplet (condition, message, actual, expected) to a Matcher

Attributes

Inherited from:
MatcherCreation
given matcherFunctionToMatcher[T, R]: matcherFunctionToMatcher[T, R]

this allows a function returning a matcher to be used where the same function with a byname parameter is expected

this allows a function returning a matcher to be used where the same function with a byname parameter is expected

Attributes

Inherited from:
MatcherCreation
given pairFunctionToMatcher[T]: pairFunctionToMatcher[T]

This method transforms a function returning a pair (condition, message) to a Matcher

This method transforms a function returning a pair (condition, message) to a Matcher

Attributes

Inherited from:
MatcherCreation
given resultFunctionToMatcher[T, R](using evidence$3: AsResult[R]): resultFunctionToMatcher[T, R]

This method transforms a function returning a Result to a Matcher

This method transforms a function returning a Result to a Matcher

Attributes

Inherited from:
MatcherCreation