Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 4 | 3 | 0.984 | statement_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 61 | src/NHibernate.Test/IdTest/AssignedFixture.cs |
2 | 5 | 88 | src/NHibernate.Test/IdTest/AssignedFixture.cs |
3 | 5 | 200 | src/NHibernate.Test/IdTest/AssignedFixture.cs |
4 | 5 | 245 | src/NHibernate.Test/IdTest/AssignedFixture.cs |
| ||||
long actual = s.CreateQuery("select count(p) from Parent p").UniqueResult<long> (); Assert.That(actual, Is.EqualTo(1)); string[] warnings = GetAssignedIdentifierWarnings(ls); Assert.That(warnings.Length, Is.EqualTo(1)); |
| ||||
long actual = s.CreateQuery("select count(p) from Parent p").UniqueResult<long> (); Assert.That(actual, Is.EqualTo(1)); string[] warnings = GetAssignedIdentifierWarnings(ls); Assert.That(warnings.Length, Is.EqualTo(0)); |
| ||||
long actual = s.CreateQuery("select count(c) from Child c").UniqueResult<long> (); Assert.That(actual, Is.EqualTo(2)); string[] warnings = GetAssignedIdentifierWarnings(ls); Assert.That(warnings.Length, Is.EqualTo(2)); |
| ||||
long actual = s.CreateQuery("select count(c) from Child c").UniqueResult<long> (); Assert.That(actual, Is.EqualTo(2)); string[] warnings = GetAssignedIdentifierWarnings(ls); Assert.That(warnings.Length, Is.EqualTo(0)); |
| |||
long actual = s.CreateQuery( [[#variable4ef90520]]).UniqueResult<long> (); Assert.That(actual, Is.EqualTo( [[#variable4f880fc0]])); string[] warnings = GetAssignedIdentifierWarnings(ls); Assert.That(warnings.Length, Is.EqualTo( [[#variable4f880f60]])); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4ef90520]] | "select count(c) from Child c" |
1 | 2 | [[#4ef90520]] | "select count(p) from Parent p" |
1 | 3 | [[#4ef90520]] | "select count(c) from Child c" |
1 | 4 | [[#4ef90520]] | "select count(p) from Parent p" |
2 | 1 | [[#4f880fc0]] | 2 |
2 | 2 | [[#4f880fc0]] | 1 |
2 | 3 | [[#4f880fc0]] | 2 |
2 | 4 | [[#4f880fc0]] | 1 |
3 | 1 | [[#4f880f60]] | 0 |
3 | 2 | [[#4f880f60]] | 0 |
3 | 3 | [[#4f880f60]] | 2 |
3 | 4 | [[#4f880f60]] | 1 |