Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.976 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 243 | src/NHibernate.Test/HQL/HQLFunctions.cs |
2 | 7 | 250 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| ||||
result = (Animal)s.CreateQuery(hql). SetParameter(0, "bcd"). UniqueResult(); Assert.AreEqual("abcdef", result.Description); hql = "from Animal a where substring(a.Description, 2, ?) = 'bcd'"; |
| ||||
result = (Animal)s.CreateQuery(hql). SetParameter(0, 3). UniqueResult(); Assert.AreEqual("abcdef", result.Description); hql = "from Animal a where substring(a.Description, ?, ?) = ?"; |
| |||
result = (Animal)s.CreateQuery(hql).SetParameter(0, [[#variable2958f1a0]]).UniqueResult(); Assert.AreEqual("abcdef", result.Description); hql = [[#variable2958f180]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2958f1a0]] | 3 |
1 | 2 | [[#2958f1a0]] | "bcd" |
2 | 1 | [[#2958f180]] | "from Animal a where substring(a.Description, ?, ?) = ?" |
2 | 2 | [[#2958f180]] | "from Animal a where substring(a.Description, 2, ?) = 'bcd'" |