| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 17 | 2 | 3 | 0.984 | SourceElements[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 17 | 274 | Closure/closure/goog/testing/asserts.js |
| 2 | 17 | 297 | 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));
}
|
| ||||
/**
* @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));
}
|
| |||
/**
* @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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5db9dd20]] | assertNull |
| 1 | 2 | [[#5db9dd20]] | assertUndefined |
| 2 | 1 | [[#5db9dca0]] | null |
| 2 | 2 | [[#5db9dca0]] | JSUNIT_UNDEFINED_VALUE |
| 3 | 1 | [[#5db9c460]] | assertNotNull |
| 3 | 2 | [[#5db9c460]] | assertNotUndefined |