CloneSet496


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13240.985class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11350
src/NHibernate.Test/NHSpecificTest/NH1742/Fixture.cs
21265
src/NHibernate.Test/NHSpecificTest/NH1742/Fixture.cs
Clone Instance
1
Line Count
13
Source Line
50
Source File
src/NHibernate.Test/NHSpecificTest/NH1742/Fixture.cs

                [Test]
                public void BugTest()
                {
                        IQuery query =
                                session.CreateQuery("SELECT e FROM Event e " + " inner join fetch e.descriptions d " +
                                                      " WHERE (e.SendedBy in( :dev)) " + " AND (e.Date >= :from) " + " AND (e.Date <= :to)" +
                                                      " ORDER BY d.Value");

                        var devices = new List<Device> { device } ;

                        query.SetParameterList("dev", devices).SetDateTime("from", date).SetDateTime("to", date.AddMonths(1));

                        Assert.AreEqual(1, query.List<Event> ().Count);
                }



Clone Instance
2
Line Count
12
Source Line
65
Source File
src/NHibernate.Test/NHSpecificTest/NH1742/Fixture.cs

                [Test]
                public void WorkingTest()
                {
                        IQuery query =
                                session.CreateQuery("SELECT e FROM Event e " + " inner join fetch e.descriptions d " + " WHERE (e.Date >= :from) " +
                                                      " AND (e.Date <= :to)" + " AND (e.SendedBy in( :dev)) " + " ORDER BY d.Value");

                        var devices = new List<Device> { device } ;

                        query.SetParameterList("dev", devices).SetDateTime("from", date).SetDateTime("to", date.AddMonths(1));

                        Assert.AreEqual(1, query.List<Event> ().Count);
                }



Clone AbstractionParameter Count: 4Parameter Bindings

[Test]
public void [[#variable553a23a0]]()
{
   IQuery query = session.CreateQuery("SELECT e FROM Event e " + " inner join fetch e.descriptions d " + [[#variable553a22c0]]+ [[#variable553a21c0]]+ [[#variable553a20e0]]+ " ORDER BY d.Value");
   var devices = new List<Device> { device } ;
   query.SetParameterList("dev", devices).SetDateTime("from", date).SetDateTime("to", date.AddMonths(1));
   Assert.AreEqual(1, query.List<Event> ().Count);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#553a23a0]]
BugTest 
12[[#553a23a0]]
WorkingTest 
21[[#553a22c0]]
" WHERE (e.SendedBy in( :dev)) " 
22[[#553a22c0]]
" WHERE (e.Date >= :from) " 
31[[#553a21c0]]
" AND (e.Date >= :from) " 
32[[#553a21c0]]
" AND (e.Date <= :to)" 
41[[#553a20e0]]
" AND (e.Date <= :to)" 
42[[#553a20e0]]
" AND (e.SendedBy in( :dev)) "