Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 2 | 0.983 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 580 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 2 | 583 | src/NHibernate.Test/Legacy/FooBarTest.cs |
| ||||
list = s.CreateQuery("from foo in class Foo where foo.id=?").SetString(0, foo.Key).List(); Assert.AreEqual(1, list.Count, "id query"); |
| ||||
list = s.CreateQuery("from foo in class Foo where foo.Key=?").SetString(0, foo.Key).List(); Assert.AreEqual(1, list.Count, "named id query"); |
| |||
list = s.CreateQuery( [[#variable2bcfe500]]).SetString(0, foo.Key).List(); Assert.AreEqual(1, list.Count, [[#variable2bcfe520]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2bcfe500]] | "from foo in class Foo where foo.Key=?" |
1 | 2 | [[#2bcfe500]] | "from foo in class Foo where foo.id=?" |
2 | 1 | [[#2bcfe520]] | "named id query" |
2 | 2 | [[#2bcfe520]] | "id query" |