CloneSet587


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7440.967class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1711
src/NHibernate.Test/EngineTest/CallableParserFixture.cs
2720
src/NHibernate.Test/EngineTest/CallableParserFixture.cs
3747
src/NHibernate.Test/EngineTest/CallableParserFixture.cs
4756
src/NHibernate.Test/EngineTest/CallableParserFixture.cs
Clone Instance
1
Line Count
7
Source Line
11
Source File
src/NHibernate.Test/EngineTest/CallableParserFixture.cs

                [Test]
                public void CanDetermineIsCallable()
                {
                        string query = @"{ call myFunction(:name) }";

                        CallableParser.Detail detail = CallableParser.Parse(query);
                        Assert.That(detail.IsCallable, Is.True);
                }



Clone Instance
2
Line Count
7
Source Line
20
Source File
src/NHibernate.Test/EngineTest/CallableParserFixture.cs

                [Test]
                public void CanDetermineIsNotCallable()
                {
                        string query = @"SELECT id FROM mytable";

                        CallableParser.Detail detail = CallableParser.Parse(query);
                        Assert.That(detail.IsCallable, Is.False);
                }



Clone Instance
3
Line Count
7
Source Line
47
Source File
src/NHibernate.Test/EngineTest/CallableParserFixture.cs

                [Test]
                public void CanDetermineHasReturn()
                {
                        string query = @"{ ? = call myFunction(:name) }";

                        CallableParser.Detail detail = CallableParser.Parse(query);
                        Assert.That(detail.HasReturn, Is.True);
                }



Clone Instance
4
Line Count
7
Source Line
56
Source File
src/NHibernate.Test/EngineTest/CallableParserFixture.cs

                [Test]
                public void CanDetermineHasNoReturn()
                {
                        string query = @"{ call myFunction(:name) }";

                        CallableParser.Detail detail = CallableParser.Parse(query);
                        Assert.That(detail.HasReturn, Is.False);
                }



Clone AbstractionParameter Count: 4Parameter Bindings

[Test]
public void [[#variable282e2980]]()
{
   string query = [[#variable2a9f9500]];
   CallableParser.Detail detail = CallableParser.Parse(query);
   Assert.That(detail. [[#variable5e44a160]], Is. [[#variable282e2620]]);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#282e2980]]
CanDetermineIsCallable 
12[[#282e2980]]
CanDetermineIsNotCallable 
13[[#282e2980]]
CanDetermineHasReturn 
14[[#282e2980]]
CanDetermineHasNoReturn 
21[[#2a9f9500]]
@"{ call myFunction(:name) }" 
22[[#2a9f9500]]
@"SELECT id FROM mytable" 
23[[#2a9f9500]]
@"{ ? = call myFunction(:name) }" 
24[[#2a9f9500]]
@"{ call myFunction(:name) }" 
31[[#5e44a160]]
IsCallable 
32[[#5e44a160]]
IsCallable 
33[[#5e44a160]]
HasReturn 
34[[#5e44a160]]
HasReturn 
41[[#282e2620]]
True 
42[[#282e2620]]
False 
43[[#282e2620]]
True 
44[[#282e2620]]
False