| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 4 | 2 | 0.968 | statement_list[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 295 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 2 | 3 | 378 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 3 | 3 | 455 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| 4 | 3 | 481 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| ||||
Assert.AreEqual(2, lresult[0]);
hql = "from Animal a where locate('bc', a.Description) = 2";
|
| ||||
Assert.AreEqual(4, lresult[0]);
hql = "from Animal a where length(a.Description) = 5";
|
| ||||
Assert.AreEqual(9, lresult[0]);
hql = "from Animal a where abs(a.BodyWeight*-1)>0";
|
| ||||
Assert.AreEqual(2, lresult[0]);
hql = "from Animal a where mod(20, 3) = 2";
|
| |||
Assert.AreEqual( [[#variable28a9c340]], lresult[0]); hql = [[#variable28a9cd60]]; |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#28a9c340]] | 2 |
| 1 | 2 | [[#28a9c340]] | 9 |
| 1 | 3 | [[#28a9c340]] | 4 |
| 1 | 4 | [[#28a9c340]] | 2 |
| 2 | 1 | [[#28a9cd60]] | "from Animal a where mod(20, 3) = 2" |
| 2 | 2 | [[#28a9cd60]] | "from Animal a where abs(a.BodyWeight*-1)>0" |
| 2 | 3 | [[#28a9cd60]] | "from Animal a where length(a.Description) = 5" |
| 2 | 4 | [[#28a9cd60]] | "from Animal a where locate('bc', a.Description) = 2" |