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.962 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 184 | Closure/closure/goog/testing/mockcontrol.js |
2 | 5 | 200 | Closure/closure/goog/testing/mockcontrol.js |
| ||||
/** * Creates a controlled MethodMock. Passes its arguments through to the * MethodMock constructor. * @param {Object} scope The scope of the method to be mocked out. * @param {string} functionName The name of the function we're going to mock. * @return {goog.testing.MethodMock} The mocked method. */ goog.testing.MockControl.prototype.createMethodMock= function ( scope, functionName) { var m= goog.testing.createMethodMock(scope, functionName); this.addMock(m); return m; } ; |
| ||||
/** * Creates a controlled MethodMock for a constructor. Passes its arguments * through to the MethodMock constructor. See * {@link goog.testing.createConstructorMock} for details. * @param {Object} scope The scope of the constructor to be mocked out. * @param {string} constructorName The name of the function we're going to mock. * @return {goog.testing.MethodMock} The mocked method. */ goog.testing.MockControl.prototype.createConstructorMock= function ( scope, constructorName) { var m= goog.testing.createConstructorMock(scope, constructorName); this.addMock(m); return m; } ; |
| |||
/** * Creates a controlled MethodMock for a constructor. Passes its arguments * through to the MethodMock constructor. See * {@link goog.testing.createConstructorMock} for details. * @param {Object} scope The scope of the constructor to be mocked out. * @param {string} constructorName The name of the function we're going to mock. * @return {goog.testing.MethodMock} The mocked method. */ /** * Creates a controlled MethodMock. Passes its arguments through to the * MethodMock constructor. * @param {Object} scope The scope of the method to be mocked out. * @param {string} functionName The name of the function we're going to mock. * @return {goog.testing.MethodMock} The mocked method. */ goog.testing.MockControl.prototype. [[#variable2025b960]]= function (scope, [[#variable2025b900]]) { var m=goog.testing. [[#variable2025b960]](scope, [[#variable2025b900]]); this.addMock(m); return m; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2025b960]] | createConstructorMock |
1 | 2 | [[#2025b960]] | createMethodMock |
2 | 1 | [[#2025b900]] | constructorName |
2 | 2 | [[#2025b900]] | functionName |