CloneSet1183


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.962ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15184
Closure/closure/goog/testing/mockcontrol.js
25200
Closure/closure/goog/testing/mockcontrol.js
Clone Instance
1
Line Count
5
Source Line
184
Source File
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;
                         } ;


Clone Instance
2
Line Count
5
Source Line
200
Source File
Closure/closure/goog/testing/mockcontrol.js

/**
 * 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;
                            } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2025b960]]
createConstructorMock 
12[[#2025b960]]
createMethodMock 
21[[#2025b900]]
constructorName 
22[[#2025b900]]
functionName