CloneSet1396


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


Clone Instance
2
Line Count
4
Source Line
574
Source File
Closure/closure/goog/testing/mockclassfactory.js

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


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1fd31900]]
getLooseStaticMock 
12[[#1fd31900]]
getStrictStaticMock 
21[[#1fd318a0]]
false 
22[[#1fd318a0]]
true