CloneSet678


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19320.986class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1198
src/NHibernate.Test/NHSpecificTest/NH1928/Fixture.cs
21830
src/NHibernate.Test/NHSpecificTest/NH1928/Fixture.cs
31951
src/NHibernate.Test/NHSpecificTest/NH1928/Fixture.cs
Clone Instance
1
Line Count
19
Source Line
8
Source File
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();
            }
        }



Clone Instance
2
Line Count
18
Source Line
30
Source File
src/NHibernate.Test/NHSpecificTest/NH1928/Fixture.cs

                [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();
                        }
                }



Clone Instance
3
Line Count
19
Source Line
51
Source File
src/NHibernate.Test/NHSpecificTest/NH1928/Fixture.cs

        [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();
            }
        }



Clone AbstractionParameter Count: 2Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#57d26340]]
SqlCommentAtBeginningOfLine 
12[[#57d26340]]
SqlCommentAtBeginningOfLastLine 
13[[#57d26340]]
SqlCommentAfterBeginningOfLine 
21[[#57d262c0]]
@"
select 1
from 
    Customer 
where
-- this is a comment
    Name = 'Joe'
    and Age > 50
" 
22[[#57d262c0]]
@"
select 1
from 
    Customer 
where
    Name = 'Joe'
    and Age > 50
-- this is a comment" 
23[[#57d262c0]]
@"
select 1
from 
    Customer 
where
 -- this is a comment
    Name = 'Joe'
    and Age > 50
"