CloneSet703


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.985ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15448
Closure/closure/goog/testing/mockclassfactory.js
25464
Closure/closure/goog/testing/mockclassfactory.js
Clone Instance
1
Line Count
5
Source Line
448
Source File
Closure/closure/goog/testing/mockclassfactory.js

/**
 * Gets a strict mock for a given class.
 * @param {Object} namespace A javascript namespace (e.g. goog.testing).
 * @param {Function} classToMock The class that will be mocked.
 * @param {...*} var_args The arguments associated with this instance's
 *     constructor.
 * @return {goog.testing.StrictMock} The mock created for the provided class.
 */
goog.testing.MockClassFactory.prototype.getStrictMockClass=
    function (namespace, classToMock, var_args){
  var args=  /** @type {Array} */
                                  (arguments);
  return /** @type {goog.testing.StrictMock} */
                                                (this.getMockClass_(namespace,
      classToMock, true                                             ,args));
                                               } ;


Clone Instance
2
Line Count
5
Source Line
464
Source File
Closure/closure/goog/testing/mockclassfactory.js

/**
 * Gets a loose mock for a given class.
 * @param {Object} namespace A javascript namespace (e.g. goog.testing).
 * @param {Function} classToMock The class that will be mocked.
 * @param {...*} var_args The arguments associated with this instance's
 *     constructor.
 * @return {goog.testing.LooseMock} The mock created for the provided class.
 */
goog.testing.MockClassFactory.prototype.getLooseMockClass=
    function (namespace, classToMock, var_args){
  var args=  /** @type {Array} */
                                  (arguments);
  return /** @type {goog.testing.LooseMock} */
                                               (this.getMockClass_(namespace,
      classToMock, false                                           ,args));
                                               } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Gets a loose mock for a given class.
 * @param {Object} namespace A javascript namespace (e.g. goog.testing).
 * @param {Function} classToMock The class that will be mocked.
 * @param {...*} var_args The arguments associated with this instance's
 *     constructor.
 * @return {goog.testing.LooseMock} The mock created for the provided class.
 */
/**
 * Gets a strict mock for a given class.
 * @param {Object} namespace A javascript namespace (e.g. goog.testing).
 * @param {Function} classToMock The class that will be mocked.
 * @param {...*} var_args The arguments associated with this instance's
 *     constructor.
 * @return {goog.testing.StrictMock} The mock created for the provided class.
 */
goog.testing.MockClassFactory.prototype. [[#variable5f8c2180]]= function (namespace,classToMock,var_args)
                                                                { var args= /** @type {Array} */
                                                                      (arguments);
                                                                  return /** @type {goog.testing.LooseMock} */ /** @type {goog.testing.StrictMock} */
                                                                  (this.getMockClass_(namespace,classToMock, [[#variable5f8c20c0]],args));
                                                                } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f8c2180]]
getLooseMockClass 
12[[#5f8c2180]]
getStrictMockClass 
21[[#5f8c20c0]]
false 
22[[#5f8c20c0]]
true