Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 3 | 0.971 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 72 | src/NHibernate.Test/NHSpecificTest/NH266/UserFixture.cs |
2 | 3 | 80 | src/NHibernate.Test/NHSpecificTest/NH266/UserFixture.cs |
| ||||
q.SetParameter("name", "active user"); list = q.List(); Assert.AreEqual(1, list.Count, "only 1 active user with that name"); |
| ||||
// verify that even a user with a value in the db is // still not found even though a row exists q.SetParameter("name", "inactive user"); list = q.List(); Assert.AreEqual(0, list.Count, "no 'inactive user' according to where clause"); |
| |||
// verify that even a user with a value in the db is // still not found even though a row exists q.SetParameter("name", [[#variable6cd16840]]); list = q.List(); Assert.AreEqual( [[#variable6cd15cc0]], list.Count, [[#variable6cd166a0]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6cd16840]] | "inactive user" |
1 | 2 | [[#6cd16840]] | "active user" |
2 | 1 | [[#6cd15cc0]] | 0 |
2 | 2 | [[#6cd15cc0]] | 1 |
3 | 1 | [[#6cd166a0]] | "no 'inactive user' according to where clause" |
3 | 2 | [[#6cd166a0]] | "only 1 active user with that name" |