| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 2 | 0.973 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 389 | Closure/closure/goog/testing/mock.js |
| 2 | 4 | 411 | Closure/closure/goog/testing/mock.js |
| ||||
/**
* Allows the expectation to be called 0 or 1 times.
* @return {goog.testing.Mock} This mock object.
*/
goog.testing.Mock.prototype.$atMostOnce= function ( )
{
this.$pendingExpectation.minCalls= 0;
this.$pendingExpectation.maxCalls= 1;
return this ;
} ;
|
| ||||
/**
* Allows the expectation to be called any number of times.
* @return {goog.testing.Mock} This mock object.
*/
goog.testing.Mock.prototype.$anyTimes= function ( )
{
this.$pendingExpectation.minCalls= 0;
this.$pendingExpectation.maxCalls= Infinity;
return this ;
} ;
|
| |||
/**
* Allows the expectation to be called any number of times.
* @return {goog.testing.Mock} This mock object.
*/
/**
* Allows the expectation to be called 0 or 1 times.
* @return {goog.testing.Mock} This mock object.
*/
goog.testing.Mock.prototype. [[#variable3b649540]]= function ( )
{ this.$pendingExpectation.minCalls=0;
this.$pendingExpectation.maxCalls= [[#variable3b649460]];
return this ;
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#3b649540]] | $anyTimes |
| 1 | 2 | [[#3b649540]] | $atMostOnce |
| 2 | 1 | [[#3b649460]] | Infinity |
| 2 | 2 | [[#3b649460]] | 1 |