CloneSet1435


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


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

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


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3ada8940]]
createGlobalFunctionMock 
12[[#3ada8940]]
createFunctionMock 
21[[#3ada8860]]
functionName 
22[[#3ada8860]]
opt_functionName