Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.979 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 559 | Closure/closure/goog/testing/mockclassfactory.js |
2 | 4 | 574 | Closure/closure/goog/testing/mockclassfactory.js |
| ||||
/** * Gets a strict mock for the static functions of a given class. * @param {Object} namespace A javascript namespace (e.g. goog.testing). * @param {Function} classToMock The class whose static functions will be * mocked. This should be the original class and not the proxy. * @return {goog.testing.StrictMock} The mock created for the static functions * of the provided class. */ goog.testing.MockClassFactory.prototype.getStrictStaticMock= function (namespace, classToMock){ return /** @type {goog.testing.StrictMock} */ (this.getStaticMock_(namespace, classToMock, true)); } ; |
| ||||
/** * Gets a loose mock for the static functions of a given class. * @param {Object} namespace A javascript namespace (e.g. goog.testing). * @param {Function} classToMock The class whose static functions will be * mocked. This should be the original class and not the proxy. * @return {goog.testing.LooseMock} The mock created for the static functions * of the provided class. */ goog.testing.MockClassFactory.prototype.getLooseStaticMock= function (namespace, classToMock){ return /** @type {goog.testing.LooseMock} */ (this.getStaticMock_(namespace, classToMock, false)); } ; |
| |||
/** * Gets a loose mock for the static functions of a given class. * @param {Object} namespace A javascript namespace (e.g. goog.testing). * @param {Function} classToMock The class whose static functions will be * mocked. This should be the original class and not the proxy. * @return {goog.testing.LooseMock} The mock created for the static functions * of the provided class. */ /** * Gets a strict mock for the static functions of a given class. * @param {Object} namespace A javascript namespace (e.g. goog.testing). * @param {Function} classToMock The class whose static functions will be * mocked. This should be the original class and not the proxy. * @return {goog.testing.StrictMock} The mock created for the static functions * of the provided class. */ goog.testing.MockClassFactory.prototype. [[#variable1fd31900]]= function (namespace,classToMock) { return /** @type {goog.testing.LooseMock} */ /** @type {goog.testing.StrictMock} */ (this.getStaticMock_(namespace,classToMock, [[#variable1fd318a0]])); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1fd31900]] | getLooseStaticMock |
1 | 2 | [[#1fd31900]] | getStrictStaticMock |
2 | 1 | [[#1fd318a0]] | false |
2 | 2 | [[#1fd318a0]] | true |