MatcherOps

com.phasmidsoftware.matchers.Matchers.MatcherOps
implicit class MatcherOps[T, R](p: Matchers.this.Matcher[T, R])

Implicit class MatcherOps, which allows us to use the method :| on a Matcher[T,R].

Type parameters

R

the result type of p.

T

the input type of p.

Value parameters

p

a Matcher[T,R].

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def :|(name: => String)(using ml: MatchLogger): Matchers.this.Matcher[T, R]

Enhances a Matcher with logging functionality. This method wraps an existing Matcher in a LoggingMatcher, associating it with a descriptive name and using an implicit MatchLogger to handle logging operations.

Enhances a Matcher with logging functionality. This method wraps an existing Matcher in a LoggingMatcher, associating it with a descriptive name and using an implicit MatchLogger to handle logging operations.

Value parameters

ml

An instance of MatchLogger used for managing logging behavior.

name

A descriptive name for the matcher, supplied lazily.

Attributes

Returns

A new Matcher[T, R] instance enhanced with logging capabilities.