CloneSet157


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17230.984SourceElements[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117274
Closure/closure/goog/testing/asserts.js
217297
Closure/closure/goog/testing/asserts.js
Clone Instance
1
Line Count
17
Source Line
274
Source File
Closure/closure/goog/testing/asserts.js

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function assertNull(a, opt_b) {
  _validateArguments(1, arguments);
  var aVar=  nonCommentArg(1, 1, arguments);
  _assert(commentArg(1, arguments), aVar === null,
      'Expected '+  _displayStringForValue(null)+  ' but was '+
      _displayStringForValue(aVar));
                              }

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function assertNotNull(a, opt_b) {
  _validateArguments(1, arguments);
  var aVar=  nonCommentArg(1, 1, arguments);
  _assert(commentArg(1, arguments), aVar !== null,
      'Expected not to be '+  _displayStringForValue(null));
                                 }


Clone Instance
2
Line Count
17
Source Line
297
Source File
Closure/closure/goog/testing/asserts.js

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function assertUndefined(a, opt_b) {
  _validateArguments(1, arguments);
  var aVar=  nonCommentArg(1, 1, arguments);
  _assert(commentArg(1, arguments), aVar === JSUNIT_UNDEFINED_VALUE,
      'Expected '+  _displayStringForValue(JSUNIT_UNDEFINED_VALUE)+
      ' but was '+  _displayStringForValue(aVar));
                                   }

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function assertNotUndefined(a, opt_b) {
  _validateArguments(1, arguments);
  var aVar=  nonCommentArg(1, 1, arguments);
  _assert(commentArg(1, arguments), aVar !== JSUNIT_UNDEFINED_VALUE,
      'Expected not to be '+  _displayStringForValue(JSUNIT_UNDEFINED_VALUE));
                                      }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function [[#variable5db9dd20]](a,opt_b)
{ _validateArguments(1,arguments);
  var aVar=nonCommentArg(1,1,arguments);
  _assert(commentArg(1,arguments),aVar === [[#variable5db9dca0]],'Expected '+_displayStringForValue( [[#variable5db9dca0]])+' but was '+_displayStringForValue(aVar));
}

/**
 * @param {*} a
 * @param {*=} opt_b
 */
function [[#variable5db9c460]](a,opt_b)
{ _validateArguments(1,arguments);
  var aVar=nonCommentArg(1,1,arguments);
  _assert(commentArg(1,arguments),aVar !== [[#variable5db9dca0]],'Expected not to be '+_displayStringForValue( [[#variable5db9dca0]]));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5db9dd20]]
assertNull 
12[[#5db9dd20]]
assertUndefined 
21[[#5db9dca0]]
null 
22[[#5db9dca0]]
JSUNIT_UNDEFINED_VALUE 
31[[#5db9c460]]
assertNotNull 
32[[#5db9c460]]
assertNotUndefined