Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 1 | 0.997 | statement_list[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 4016 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 9 | 4027 | src/NHibernate.Test/Legacy/FooBarTest.cs |
| ||||
rs = s.CreateQuery( "select child.id, parent.id, child.Long from parent in class NHibernate.DomainModel.Foo, child in class NHibernate.DomainModel.Foo where parent.TheFoo = child"). Enumerable().GetEnumerator(); Assert.IsTrue(rs.MoveNext()); row = (object[]) rs.Current; Assert.AreEqual(foo.TheFoo.Key, row[0], "multi-column id"); Assert.AreEqual(foo.Key, row[1], "multi-column id"); Assert.AreEqual(foo.TheFoo.Long, row[2], "multi-column property"); |
| ||||
rs = s.CreateQuery( "select child.id, parent.id, child.Long, child, parent.TheFoo from parent in class NHibernate.DomainModel.Foo, child in class NHibernate.DomainModel.Foo where parent.TheFoo = child"). Enumerable().GetEnumerator(); Assert.IsTrue(rs.MoveNext()); row = (object[]) rs.Current; Assert.AreEqual(foo.TheFoo.Key, row[0], "multi-column id"); Assert.AreEqual(foo.Key, row[1], "multi-column id"); Assert.AreEqual(foo.TheFoo.Long, row[2], "multi-column property"); |
| |||
rs = s.CreateQuery( [[#variable5459f8e0]]).Enumerable().GetEnumerator(); Assert.IsTrue(rs.MoveNext()); row = (object[])rs.Current; Assert.AreEqual(foo.TheFoo.Key, row[0], "multi-column id"); Assert.AreEqual(foo.Key, row[1], "multi-column id"); Assert.AreEqual(foo.TheFoo.Long, row[2], "multi-column property"); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5459f8e0]] | "select child.id, parent.id, child.Long, child, parent.TheFoo from parent in class NHibernate.DomainModel.Foo, child in class NHibernate.DomainModel.Foo where parent.TheFoo = child" |
1 | 2 | [[#5459f8e0]] | "select child.id, parent.id, child.Long from parent in class NHibernate.DomainModel.Foo, child in class NHibernate.DomainModel.Foo where parent.TheFoo = child" |