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.976 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 483 | src/NHibernate.Test/Legacy/MasterDetailTest.cs |
2 | 4 | 490 | src/NHibernate.Test/Legacy/MasterDetailTest.cs |
| ||||
q.SetInt32("id", - 1); Assert.AreEqual(2, q.List().Count); q = s.CreateFilter(master.Details, "where this.id > :id1 and this.id < :id2"); |
| ||||
q.SetInt32("id2", - 1); Assert.AreEqual(0, q.List().Count); q = s.CreateFilter(master.Details, "where this.id in (:ids)"); |
| |||
q.SetInt32( [[#variable29490aa0]], - 1); Assert.AreEqual( [[#variable29490680]], q.List().Count); q = s.CreateFilter(master.Details, [[#variable29491a60]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#29490aa0]] | "id2" |
1 | 2 | [[#29490aa0]] | "id" |
2 | 1 | [[#29490680]] | 0 |
2 | 2 | [[#29490680]] | 2 |
3 | 1 | [[#29491a60]] | "where this.id in (:ids)" |
3 | 2 | [[#29491a60]] | "where this.id > :id1 and this.id < :id2" |