search

goog.testing.mockmatchers.SaveArgument

Provided By
Extends

A matcher that saves the argument that it is verifying so that your unit test can perform extra tests with this argument later. For example, if the argument is a callback method, the unit test can then later call this callback to test the asynchronous portion of the call.

new SaveArgument( opt_matcher, opt_matchName )

Parameters
opt_matcher(goog.testing.mockmatchers.ArgumentMatcher|Function|null)=

Argument matcher or matching function that will be used to validate the argument. By default, argument will always be valid.

opt_matchName(string|null)=

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

Instance Methods

Instance Properties