Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 3 | 2 | 0.986 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 8 | src/NHibernate.Test/NHSpecificTest/NH1928/Fixture.cs |
2 | 18 | 30 | src/NHibernate.Test/NHSpecificTest/NH1928/Fixture.cs |
3 | 19 | 51 | src/NHibernate.Test/NHSpecificTest/NH1928/Fixture.cs |
| ||||
[Test] public void SqlCommentAtBeginningOfLine() { using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { var query = session.CreateSQLQuery( @" select 1 from Customer where -- this is a comment Name = 'Joe' and Age > 50 " ); Assert.DoesNotThrow(() => query.List()); tx.Commit(); } } |
| ||||
[Test] public void SqlCommentAtBeginningOfLastLine() { using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { var query = session.CreateSQLQuery( @" select 1 from Customer where Name = 'Joe' and Age > 50 -- this is a comment" ); Assert.DoesNotThrow(() => query.List()); tx.Commit(); } } |
| ||||
[Test] public void SqlCommentAfterBeginningOfLine() { using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { var query = session.CreateSQLQuery( @" select 1 from Customer where -- this is a comment Name = 'Joe' and Age > 50 " ); Assert.DoesNotThrow(() => query.List()); tx.Commit(); } } |
| |||
[Test] public void [[#variable57d26340]]() { using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { var query = session.CreateSQLQuery( [[#variable57d262c0]]); Assert.DoesNotThrow(() => query.List()); tx.Commit(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57d26340]] | SqlCommentAtBeginningOfLine |
1 | 2 | [[#57d26340]] | SqlCommentAtBeginningOfLastLine |
1 | 3 | [[#57d26340]] | SqlCommentAfterBeginningOfLine |
2 | 1 | [[#57d262c0]] | @" select 1 from Customer where -- this is a comment Name = 'Joe' and Age > 50 " |
2 | 2 | [[#57d262c0]] | @" select 1 from Customer where Name = 'Joe' and Age > 50 -- this is a comment" |
2 | 3 | [[#57d262c0]] | @" select 1 from Customer where -- this is a comment Name = 'Joe' and Age > 50 " |