| 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.956 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 169 | Closure/closure/goog/testing/mockcontrol.js |
| 2 | 5 | 214 | Closure/closure/goog/testing/mockcontrol.js |
| ||||
/**
* Creates a controlled FunctionMock. Passes its arguments through to the
* FunctionMock constructor.
* @param {string=} opt_functionName The optional name of the function to mock
* set to '[anonymous mocked function]' if not passed in.
* @return {goog.testing.FunctionMock} The mocked function.
*/
goog.testing.MockControl.prototype.createFunctionMock= function (
opt_functionName) {
var m= goog.testing.createFunctionMock(opt_functionName);
this.addMock(m);
return m;
} ;
|
| ||||
/**
* Creates a controlled GlobalFunctionMock. Passes its arguments through to the
* GlobalFunctionMock constructor.
* @param {string} functionName The name of the function we're going to mock.
* @return {goog.testing.GlobalFunctionMock} The mocked function.
*/
goog.testing.MockControl.prototype.createGlobalFunctionMock= function (
functionName) {
var m= goog.testing.createGlobalFunctionMock(functionName);
this.addMock(m);
return m;
} ;
|
| |||
/**
* Creates a controlled GlobalFunctionMock. Passes its arguments through to the
* GlobalFunctionMock constructor.
* @param {string} functionName The name of the function we're going to mock.
* @return {goog.testing.GlobalFunctionMock} The mocked function.
*/
/**
* Creates a controlled FunctionMock. Passes its arguments through to the
* FunctionMock constructor.
* @param {string=} opt_functionName The optional name of the function to mock
* set to '[anonymous mocked function]' if not passed in.
* @return {goog.testing.FunctionMock} The mocked function.
*/
goog.testing.MockControl.prototype. [[#variable3ada8940]]= function ( [[#variable3ada8860]])
{ var m=goog.testing. [[#variable3ada8940]]( [[#variable3ada8860]]);
this.addMock(m);
return m;
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#3ada8940]] | createGlobalFunctionMock |
| 1 | 2 | [[#3ada8940]] | createFunctionMock |
| 2 | 1 | [[#3ada8860]] | functionName |
| 2 | 2 | [[#3ada8860]] | opt_functionName |