# Class goog.testing.mockmatchers.IgnoreArgument

code »

    goog.testing.mockmatchers.ArgumentMatcher
      └ goog.testing.mockmatchers.IgnoreArgument

A matcher that always returns true. It is useful when the user does not care for some arguments. For example: mockFunction('username', 'password', IgnoreArgument);

## Constructor

goog.testing.mockmatchers.IgnoreArgument ( )
Show:Public Protected Private

## Instance Methods

code »matches ( toVerify, opt_expectation ) ⇒ `boolean`

A function that takes a match argument and an optional MockExpectation which (if provided) will get error information and returns whether or not it matches.

Parameters
toVerify: `*` The argument that should be verified. opt_expectation: `?goog.testing.MockExpectation=` The expectation for this match.
Returns
Whether or not a given argument passes verification.

## Instance Properties

code »matchFn_ : `Function`

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

code »matchName_ : `?string`

A string indicating the match intent (e.g. isBoolean or isString).

## Static Properties

code »goog.testing.mockmatchers.IgnoreArgument.superClass_ : `goog.testing.mockmatchers.ArgumentMatcher.prototype`