Packages

o

org.scalatest.matchers

MatchPatternHelper

object MatchPatternHelper

MatchPatternHelper is called by MatchPatternMacro to support matchPattern syntax.

Source
MatchPatternHelper.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MatchPatternHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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", _) => }
                      ^
    

  2. 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", _) => }
                  ^
    

  3. 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)))
                       ^