CloneSet742


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5420.980statement_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14321
src/NHibernate.Test/HQL/HQLFunctions.cs
24325
src/NHibernate.Test/HQL/HQLFunctions.cs
34329
src/NHibernate.Test/HQL/HQLFunctions.cs
45333
src/NHibernate.Test/HQL/HQLFunctions.cs
Clone Instance
1
Line Count
4
Source Line
321
Source File
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();


Clone Instance
2
Line Count
4
Source Line
325
Source File
src/NHibernate.Test/HQL/HQLFunctions.cs

                                Assert.AreEqual("def", lresult[0]);

                                hql = "select trim(trailing from a.Description) from Animal a where a.Description= 'abc   '";
                                lresult = s.CreateQuery(hql).List();


Clone Instance
3
Line Count
4
Source Line
329
Source File
src/NHibernate.Test/HQL/HQLFunctions.cs

                                Assert.AreEqual("abc", lresult[0]);

                                hql = "select trim(leading from a.Description) from Animal a where a.Description='   def'";
                                lresult = s.CreateQuery(hql).List();


Clone Instance
4
Line Count
5
Source Line
333
Source File
src/NHibernate.Test/HQL/HQLFunctions.cs

                                Assert.AreEqual("def", lresult[0]);

                                // where
                                hql = "from Animal a where trim(a.Description) = 'abc'";
                                lresult = s.CreateQuery(hql).List();


Clone AbstractionParameter Count: 2Parameter Bindings

Assert.AreEqual( [[#variable70beae20]], lresult[0]);
// where
hql = [[#variable6630b280]];
lresult = s.CreateQuery(hql).List();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70beae20]]
"def" 
12[[#70beae20]]
"def" 
13[[#70beae20]]
"abc" 
14[[#70beae20]]
"def" 
21[[#6630b280]]
"from Animal a where trim(a.Description) = 'abc'" 
22[[#6630b280]]
"select trim(trailing from a.Description) from Animal a where a.Description= 'abc   '" 
23[[#6630b280]]
"select trim(leading from a.Description) from Animal a where a.Description='   def'" 
24[[#6630b280]]
"select trim('_' from a.Description) from Animal a where a.Description='___def__'"