| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 5 | 2 | 2 | 0.985 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 448 | Closure/closure/goog/testing/mockclassfactory.js |
| 2 | 5 | 464 | Closure/closure/goog/testing/mockclassfactory.js |
| ||||
/**
* Gets a strict mock for a given class.
* @param {Object} namespace A javascript namespace (e.g. goog.testing).
* @param {Function} classToMock The class that will be mocked.
* @param {...*} var_args The arguments associated with this instance's
* constructor.
* @return {goog.testing.StrictMock} The mock created for the provided class.
*/
goog.testing.MockClassFactory.prototype.getStrictMockClass=
function (namespace, classToMock, var_args){
var args= /** @type {Array} */
(arguments);
return /** @type {goog.testing.StrictMock} */
(this.getMockClass_(namespace,
classToMock, true ,args));
} ;
|
| ||||
/**
* Gets a loose mock for a given class.
* @param {Object} namespace A javascript namespace (e.g. goog.testing).
* @param {Function} classToMock The class that will be mocked.
* @param {...*} var_args The arguments associated with this instance's
* constructor.
* @return {goog.testing.LooseMock} The mock created for the provided class.
*/
goog.testing.MockClassFactory.prototype.getLooseMockClass=
function (namespace, classToMock, var_args){
var args= /** @type {Array} */
(arguments);
return /** @type {goog.testing.LooseMock} */
(this.getMockClass_(namespace,
classToMock, false ,args));
} ;
|
| |||
/**
* Gets a loose mock for a given class.
* @param {Object} namespace A javascript namespace (e.g. goog.testing).
* @param {Function} classToMock The class that will be mocked.
* @param {...*} var_args The arguments associated with this instance's
* constructor.
* @return {goog.testing.LooseMock} The mock created for the provided class.
*/
/**
* Gets a strict mock for a given class.
* @param {Object} namespace A javascript namespace (e.g. goog.testing).
* @param {Function} classToMock The class that will be mocked.
* @param {...*} var_args The arguments associated with this instance's
* constructor.
* @return {goog.testing.StrictMock} The mock created for the provided class.
*/
goog.testing.MockClassFactory.prototype. [[#variable5f8c2180]]= function (namespace,classToMock,var_args)
{ var args= /** @type {Array} */
(arguments);
return /** @type {goog.testing.LooseMock} */ /** @type {goog.testing.StrictMock} */
(this.getMockClass_(namespace,classToMock, [[#variable5f8c20c0]],args));
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5f8c2180]] | getLooseMockClass |
| 1 | 2 | [[#5f8c2180]] | getStrictMockClass |
| 2 | 1 | [[#5f8c20c0]] | false |
| 2 | 2 | [[#5f8c20c0]] | true |