The recordedFunction Namespace

.getCallCount()

returns {number}
Total number of calls.

.getCalls()

returns {!Array.<!goog.testing.FunctionCall>}
All calls of the recorded function.

.getLastCall()

returns {goog.testing.FunctionCall}
Last call of the recorded function or null if it hasn't been called.

.popLastCall()

Returns and removes the last call of the recorded function.

returns {goog.testing.FunctionCall}
Last call of the recorded function or null if it hasn't been called.

.reset()

Resets the recorded function and removes all calls.