MatchPatternHelper

org.scalatest.matchers.MatchPatternHelper

MatchPatternHelper is called by MatchPatternMacro to support matchPattern syntax.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def checkMatchPattern(resultOfNoWordForAny: ResultOfNotWordForAny[_], right: PartialFunction[Any, _]): Unit

MatchPatternHelper that is called by MatchPatternMacro to support the following syntax:

MatchPatternHelper that is called by MatchPatternMacro to support the following syntax:

result should not matchPattern { case Person("Bob", _) => }
                 ^

Attributes

def matchPatternMatcher(right: PartialFunction[Any, _]): Matcher[Any]

MatchPatternHelper that is called by MatchPatternMacro to support the following syntax:

MatchPatternHelper that is called by MatchPatternMacro to support the following syntax:

result should matchPattern { case Person("Bob", _) => }
             ^

Attributes

def notMatchPatternMatcher(right: PartialFunction[Any, _]): Matcher[Any]

MatchPatternHelper that is called by MatchPatternMacro to support the following syntax:

MatchPatternHelper that is called by MatchPatternMacro to support the following syntax:

result should (not matchPattern { case Person("Alice", _) => } and (equal (result)))
                  ^

Attributes