Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.975 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 47 | src/NHibernate.Test/UtilityTest/StringHelperFixture.cs |
2 | 4 | 53 | src/NHibernate.Test/UtilityTest/StringHelperFixture.cs |
| ||||
// Base case, no values Assert.AreEqual(0, StringHelper.CountUnquoted("abcd eftf", '?')); // Simple case Assert.AreEqual(1, StringHelper.CountUnquoted("abcd ? eftf", '?')); |
| ||||
// Multiple values Assert.AreEqual(2, StringHelper.CountUnquoted("abcd ? ef ? tf", '?')); // Quoted values Assert.AreEqual(1, StringHelper.CountUnquoted("abcd ? ef '?' tf", '?')); |
| |||
// Base case, no values // Multiple values Assert.AreEqual( [[#variable297e38c0]], StringHelper.CountUnquoted( [[#variable297e2d40]], '?')); // Simple case // Quoted values Assert.AreEqual(1, StringHelper.CountUnquoted( [[#variable2980c320]], '?')); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#297e38c0]] | 0 |
1 | 2 | [[#297e38c0]] | 2 |
2 | 1 | [[#297e2d40]] | "abcd eftf" |
2 | 2 | [[#297e2d40]] | "abcd ? ef ? tf" |
3 | 1 | [[#2980c320]] | "abcd ? eftf" |
3 | 2 | [[#2980c320]] | "abcd ? ef '?' tf" |