| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 5 | 2 | 3 | 0.979 | FunctionDeclaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 535 | Closure/closure/goog/testing/asserts.js |
| 2 | 5 | 547 | Closure/closure/goog/testing/asserts.js |
| ||||
/**
* @param {*} a
* @param {*=} opt_b
*/
function assertEvaluatesToTrue(a, opt_b) {
_validateArguments(1, arguments);
var value= nonCommentArg(1, 1, arguments);
if (!value) {
_assert(commentArg(1, arguments), false ,'Expected to evaluate to true');
}
}
|
| ||||
/**
* @param {*} a
* @param {*=} opt_b
*/
function assertEvaluatesToFalse(a, opt_b) {
_validateArguments(1, arguments);
var value= nonCommentArg(1, 1, arguments);
if (value) {
_assert(commentArg(1, arguments), false ,'Expected to evaluate to false');
}
}
|
| |||
/**
* @param {*} a
* @param {*=} opt_b
*/
function [[#variable215c9ca0]](a,opt_b)
{ _validateArguments(1,arguments);
var value=nonCommentArg(1,1,arguments);
if ( [[#variable215c9c20]])
{ _assert(commentArg(1,arguments), false , [[#variable215c9b80]]);
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#215c9ca0]] | assertEvaluatesToFalse |
| 1 | 2 | [[#215c9ca0]] | assertEvaluatesToTrue |
| 2 | 1 | [[#215c9c20]] | value |
| 2 | 2 | [[#215c9c20]] | !value |
| 3 | 1 | [[#215c9b80]] | 'Expected to evaluate to false' |
| 3 | 2 | [[#215c9b80]] | 'Expected to evaluate to true' |