CloneSet170


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8340.980FunctionDeclaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18159
Closure/closure/goog/testing/asserts.js
28219
Closure/closure/goog/testing/asserts.js
38233
Closure/closure/goog/testing/asserts.js
Clone Instance
1
Line Count
8
Source Line
159
Source File
Closure/closure/goog/testing/asserts.js

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function assert(a, opt_b) {
  _validateArguments(1, arguments);
  var comment=  commentArg(1, arguments);
  var booleanValue=  nonCommentArg(1, 1, arguments);

  _assert(comment, goog.isBoolean(booleanValue),
      'Bad argument to assert(boolean)');
  _assert(comment, booleanValue, 'Call to assert(boolean) with false');
                          }


Clone Instance
2
Line Count
8
Source Line
219
Source File
Closure/closure/goog/testing/asserts.js

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function assertTrue(a, opt_b) {
  _validateArguments(1, arguments);
  var comment=  commentArg(1, arguments);
  var booleanValue=  nonCommentArg(1, 1, arguments);

  _assert(comment, goog.isBoolean(booleanValue),
      'Bad argument to assertTrue(boolean)');
  _assert(comment, booleanValue, 'Call to assertTrue(boolean) with false');
                              }


Clone Instance
3
Line Count
8
Source Line
233
Source File
Closure/closure/goog/testing/asserts.js

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function assertFalse(a, opt_b) {
  _validateArguments(1, arguments);
  var comment=  commentArg(1, arguments);
  var booleanValue=  nonCommentArg(1, 1, arguments);

  _assert(comment, goog.isBoolean(booleanValue),
      'Bad argument to assertFalse(boolean)');
  _assert(comment, !booleanValue, 'Call to assertFalse(boolean) with true');
                               }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function [[#variable5f159220]](a,opt_b)
{ _validateArguments(1,arguments);
  var comment=commentArg(1,arguments);
  var booleanValue=nonCommentArg(1,1,arguments);
  _assert(comment,goog.isBoolean(booleanValue), [[#variable5f1591c0]]);
  _assert(comment, [[#variable5f159160]], [[#variable5f1590e0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f159220]]
assertFalse 
12[[#5f159220]]
assertTrue 
13[[#5f159220]]
assert 
21[[#5f1591c0]]
'Bad argument to assertFalse(boolean)' 
22[[#5f1591c0]]
'Bad argument to assertTrue(boolean)' 
23[[#5f1591c0]]
'Bad argument to assert(boolean)' 
31[[#5f159160]]
!booleanValue 
32[[#5f159160]]
booleanValue 
33[[#5f159160]]
booleanValue 
41[[#5f1590e0]]
'Call to assertFalse(boolean) with true' 
42[[#5f1590e0]]
'Call to assertTrue(boolean) with false' 
43[[#5f1590e0]]
'Call to assert(boolean) with false'