Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 4 | 5 | 0.979 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 336 | src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs |
2 | 7 | 348 | src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs |
3 | 7 | 373 | src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs |
4 | 7 | 396 | src/NHibernate.Test/QueryTest/DetachedQueryFixture.cs |
| ||||
using (ISession s = OpenSession()) { IQuery q = dq.GetExecutableQuery(s); IList<Foo> l = q.List<Foo> (); Assert.AreEqual(1, l.Count); Assert.AreEqual("N2", l[0].Name); Assert.AreEqual("D2", l[0].Description); } |
| ||||
using (ISession s = OpenSession()) { IQuery q = dq.GetExecutableQuery(s); IList<Foo> l = q.List<Foo> (); Assert.AreEqual(1, l.Count); Assert.AreEqual("N2", l[0].Name); Assert.AreEqual("D2", l[0].Description); } |
| ||||
using (ISession s = OpenSession()) { IQuery q = dq.GetExecutableQuery(s); IList<Foo> l = q.List<Foo> (); Assert.AreEqual(2, l.Count); Assert.AreEqual("N0", l[0].Name); Assert.AreEqual("N1", l[1].Name); } |
| ||||
using (ISession s = OpenSession()) { IQuery q = dq.GetExecutableQuery(s); IList<Foo> l = q.List<Foo> (); Assert.AreEqual(1, l.Count); Assert.AreEqual("N2", l[0].Name); Assert.AreEqual("D2", l[0].Description); } |
| |||
using (ISession s = OpenSession()) { IQuery q = dq.GetExecutableQuery(s); IList<Foo> l = q.List<Foo> (); Assert.AreEqual( [[#variable6f834dc0]], l.Count); Assert.AreEqual( [[#variable6f8348c0]], l[0].Name); Assert.AreEqual( [[#variable6f8348e0]], l[ [[#variable6f834840]]]. [[#variable6f8347c0]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6f834dc0]] | 1 |
1 | 2 | [[#6f834dc0]] | 2 |
1 | 3 | [[#6f834dc0]] | 1 |
1 | 4 | [[#6f834dc0]] | 1 |
2 | 1 | [[#6f8348c0]] | "N2" |
2 | 2 | [[#6f8348c0]] | "N0" |
2 | 3 | [[#6f8348c0]] | "N2" |
2 | 4 | [[#6f8348c0]] | "N2" |
3 | 1 | [[#6f8348e0]] | "D2" |
3 | 2 | [[#6f8348e0]] | "N1" |
3 | 3 | [[#6f8348e0]] | "D2" |
3 | 4 | [[#6f8348e0]] | "D2" |
4 | 1 | [[#6f834840]] | 0 |
4 | 2 | [[#6f834840]] | 1 |
4 | 3 | [[#6f834840]] | 0 |
4 | 4 | [[#6f834840]] | 0 |
5 | 1 | [[#6f8347c0]] | Description |
5 | 2 | [[#6f8347c0]] | Name |
5 | 3 | [[#6f8347c0]] | Description |
5 | 4 | [[#6f8347c0]] | Description |