Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 3 | 0.987 | statement_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 4637 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 20 | 4662 | src/NHibernate.Test/Legacy/FooBarTest.cs |
| ||||
foreach (One one in enumerable) { switch (count) { case 0: Assert.AreEqual("a", one.Value, "a - ordering failed"); break; case 1: Assert.AreEqual("b", one.Value, "b - ordering failed"); break; default: Assert.Fail("more than two elements"); break; } count++; } s.Flush(); s.Close(); s = OpenSession(); |
| ||||
foreach (One one in enumerable) { switch (count) { case 0: Assert.AreEqual("a", one.Value, "'a' should be first element"); break; case 1: Assert.AreEqual("b", one.Value, "'b' should be second element"); break; default: Assert.Fail("more than 2 elements"); break; } count++; } s.Flush(); s.Close(); s = OpenSession(); |
| |||
foreach (One one in enumerable) { switch (count) { case 0: Assert.AreEqual("a", one.Value, [[#variable5f74a4a0]]); break; case 1: Assert.AreEqual("b", one.Value, [[#variable5f74a480]]); break; default: Assert.Fail( [[#variable5f74a420]]); break; } count++; } s.Flush(); s.Close(); s = OpenSession(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5f74a4a0]] | "'a' should be first element" |
1 | 2 | [[#5f74a4a0]] | "a - ordering failed" |
2 | 1 | [[#5f74a480]] | "'b' should be second element" |
2 | 2 | [[#5f74a480]] | "b - ordering failed" |
3 | 1 | [[#5f74a420]] | "more than 2 elements" |
3 | 2 | [[#5f74a420]] | "more than two elements" |