| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 3 | 4 | 0.980 | FunctionDeclaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 159 | Closure/closure/goog/testing/asserts.js |
| 2 | 8 | 219 | Closure/closure/goog/testing/asserts.js |
| 3 | 8 | 233 | 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');
}
|
| ||||
/**
* @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');
}
|
| ||||
/**
* @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');
}
|
| |||
/**
* @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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5f159220]] | assertFalse |
| 1 | 2 | [[#5f159220]] | assertTrue |
| 1 | 3 | [[#5f159220]] | assert |
| 2 | 1 | [[#5f1591c0]] | 'Bad argument to assertFalse(boolean)' |
| 2 | 2 | [[#5f1591c0]] | 'Bad argument to assertTrue(boolean)' |
| 2 | 3 | [[#5f1591c0]] | 'Bad argument to assert(boolean)' |
| 3 | 1 | [[#5f159160]] | !booleanValue |
| 3 | 2 | [[#5f159160]] | booleanValue |
| 3 | 3 | [[#5f159160]] | booleanValue |
| 4 | 1 | [[#5f1590e0]] | 'Call to assertFalse(boolean) with true' |
| 4 | 2 | [[#5f1590e0]] | 'Call to assertTrue(boolean) with false' |
| 4 | 3 | [[#5f1590e0]] | 'Call to assert(boolean) with false' |