Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 4 | 2 | 0.980 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 321 | src/NHibernate.Test/HQL/HQLFunctions.cs |
2 | 4 | 325 | src/NHibernate.Test/HQL/HQLFunctions.cs |
3 | 4 | 329 | src/NHibernate.Test/HQL/HQLFunctions.cs |
4 | 5 | 333 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| ||||
Assert.AreEqual("def", lresult[0]); hql = "select trim('_' from a.Description) from Animal a where a.Description='___def__'"; lresult = s.CreateQuery(hql).List(); |
| ||||
Assert.AreEqual("def", lresult[0]); hql = "select trim(trailing from a.Description) from Animal a where a.Description= 'abc '"; lresult = s.CreateQuery(hql).List(); |
| ||||
Assert.AreEqual("abc", lresult[0]); hql = "select trim(leading from a.Description) from Animal a where a.Description=' def'"; lresult = s.CreateQuery(hql).List(); |
| ||||
Assert.AreEqual("def", lresult[0]); // where hql = "from Animal a where trim(a.Description) = 'abc'"; lresult = s.CreateQuery(hql).List(); |
| |||
Assert.AreEqual( [[#variable70beae20]], lresult[0]); // where hql = [[#variable6630b280]]; lresult = s.CreateQuery(hql).List(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#70beae20]] | "def" |
1 | 2 | [[#70beae20]] | "def" |
1 | 3 | [[#70beae20]] | "abc" |
1 | 4 | [[#70beae20]] | "def" |
2 | 1 | [[#6630b280]] | "from Animal a where trim(a.Description) = 'abc'" |
2 | 2 | [[#6630b280]] | "select trim(trailing from a.Description) from Animal a where a.Description= 'abc '" |
2 | 3 | [[#6630b280]] | "select trim(leading from a.Description) from Animal a where a.Description=' def'" |
2 | 4 | [[#6630b280]] | "select trim('_' from a.Description) from Animal a where a.Description='___def__'" |