search

goog.testing.mockmatchers.ArgumentMatcher

Provided By
All Known Direct Subclasses

A simple interface for executing argument matching. A match in this case is testing to see if a supplied object fits a given criteria. True is returned if the given criteria is met.

new ArgumentMatcher( opt_matchFn, opt_matchName )

Parameters
opt_matchFn(Function|null)=

A function that evaluates a given argument and returns true if it meets a given criteria.

opt_matchName(string|null)=

The name expressing intent as part of an error message for when a match fails.

Instance Methods