Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 4 | 0.985 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 50 | src/NHibernate.Test/NHSpecificTest/NH1742/Fixture.cs |
2 | 12 | 65 | 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); } |
| ||||
[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); } |
| |||
[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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#553a23a0]] | BugTest |
1 | 2 | [[#553a23a0]] | WorkingTest |
2 | 1 | [[#553a22c0]] | " WHERE (e.SendedBy in( :dev)) " |
2 | 2 | [[#553a22c0]] | " WHERE (e.Date >= :from) " |
3 | 1 | [[#553a21c0]] | " AND (e.Date >= :from) " |
3 | 2 | [[#553a21c0]] | " AND (e.Date <= :to)" |
4 | 1 | [[#553a20e0]] | " AND (e.Date <= :to)" |
4 | 2 | [[#553a20e0]] | " AND (e.SendedBy in( :dev)) " |