testing.mockmatchers.SaveArgument
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.

Inheritance

Constructor

goog.testing.mockmatchers.SaveArgument(opt_matcheropt_matchName)

Parameters

opt_matcher : goog.testing.mockmatchers.ArgumentMatcher | Function=
Argument matcher or matching function that will be used to validate the argument. By default, argument will always be valid.
opt_matchName : ?string=
The name expressing intent as part of an error message for when a match fails.

Instance Methods

Public Protected Private
matches()
No description.
code »

Instance Properties

arg :
Saved argument that was verified.
Code »
constructor :
No description.
Code »
delegateMatcher_ :
Delegate match requests to this matcher.
Code »

Static Properties

goog.testing.mockmatchers.SaveArgument.superClass_ :
No description.
Code »

Package testing.mockmatchers

Package Reference