final class MatchPatternWord extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers
for an overview of
the matchers DSL.
- Source
- MatchPatternWord.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MatchPatternWord
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new MatchPatternWord()
Value Members
-
macro
def
apply(right: PartialFunction[Any, _]): Matcher[Any]
This method enables the following syntax:
This method enables the following syntax:
result should matchPattern { case Person("Bob", _) => } ^
-
def
toString(): String
Overrides toString to return "matchPattern"
Overrides toString to return "matchPattern"
- Definition Classes
- MatchPatternWord → AnyRef → Any