MatchPatternWord

final class MatchPatternWord

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

class Object
trait Matchable
class Any

Value members

Concrete methods

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

This method enables the following syntax:

This method enables the following syntax:

result should matchPattern { case Person("Bob", _) => }
             ^
override def toString: String

Overrides toString to return "matchPattern"

Overrides toString to return "matchPattern"

Definition Classes
Any