CloneSet185


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
51030.971class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15285
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
25292
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
35299
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
45306
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
56313
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
68321
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
77331
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
85340
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
97347
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
105356
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
Clone Instance
1
Line Count
5
Source Line
285
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringSimple()
                {
                        SqlString sql = SqlString.Parse("select col from table where col = test order by col");
                        Assert.AreEqual(" from table where col = test ", sql.GetSubselectString().ToString());
                }



Clone Instance
2
Line Count
5
Source Line
292
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringParameterInOrderBy()
                {
                        SqlString sql = SqlString.Parse("select col from table where col = test order by ? asc");
                        Assert.AreEqual(" from table where col = test ", sql.GetSubselectString().ToString());
                }



Clone Instance
3
Line Count
5
Source Line
299
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringSimpleEndsWithParameter()
                {
                        SqlString sql = SqlString.Parse("select col from table where col = ? order by col");
                        Assert.AreEqual(" from table where col = ? ", sql.GetSubselectString().ToString());
                }



Clone Instance
4
Line Count
5
Source Line
306
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringSimpleParameterInMiddle()
                {
                        SqlString sql = SqlString.Parse("select col from table where col = ? and foo = bar order by col");
                        Assert.AreEqual(" from table where col = ? and foo = bar ", sql.GetSubselectString().ToString());
                }



Clone Instance
5
Line Count
6
Source Line
313
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringWithFormulaProperty()
                {
                        SqlString sql =
                                SqlString.Parse("select (select foo from bar where foo=col order by foo) from table where col = ? order by col");
                        Assert.AreEqual(" from table where col = ? ", sql.GetSubselectString().ToString());
                }



Clone Instance
6
Line Count
8
Source Line
321
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringWithSubselectInWhere()
                {
                        SqlString sql =
                                SqlString.Parse(
                                        "select (select foo from bar where foo=col order by foo) from table where col = (select yadda from blah where yadda=x order by yadda) order by col");
                        Assert.AreEqual(" from table where col = (select yadda from blah where yadda=x order by yadda) ",
                                        sql.GetSubselectString().ToString());
                }



Clone Instance
7
Line Count
7
Source Line
331
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringWithFormulaPropertyWithSubselect()
                {
                        SqlString sql =
                                SqlString.Parse(
                                        "select (select (select blah from yadda where blah=foo order by blah) from bar where foo=col order by foo) from table where col = ? order by col");
                        Assert.AreEqual(" from table where col = ? ", sql.GetSubselectString().ToString());
                }



Clone Instance
8
Line Count
5
Source Line
340
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringWithParenthesisOnlyInWhere()
                {
                        SqlString sql = SqlString.Parse("select col from table where (col = test) order by col");
                        Assert.AreEqual(" from table where (col = test) ", sql.GetSubselectString().ToString());
                }



Clone Instance
9
Line Count
7
Source Line
347
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringWithTwoFormulas()
                {
                        SqlString sql =
                                SqlString.Parse(
                                        "select (select foo from bar where foo=col order by foo), (select foo from bar where foo=col order by foo) from table where col = ? order by col");
                        Assert.AreEqual(" from table where col = ? ", sql.GetSubselectString().ToString());
                }



Clone Instance
10
Line Count
5
Source Line
356
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void GetSubselectStringWithOrderByInSubselect()
                {
                        SqlString sql = SqlString.Parse("select col from table where (col = test) and id in (select id from foo order by bar)");
                        Assert.AreEqual(" from table where (col = test) and id in (select id from foo order by bar)", sql.GetSubselectString().ToString());
                }



Clone AbstractionParameter Count: 3Parameter Bindings

[Test]
public void [[#variable5e470380]]()
{
   SqlString sql = SqlString.Parse( [[#variable5e470280]]);
   Assert.AreEqual( [[#variable5e4701e0]], sql.GetSubselectString().ToString());
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e470380]]
GetSubselectStringSimple 
12[[#5e470380]]
GetSubselectStringWithFormulaProperty 
13[[#5e470380]]
GetSubselectStringSimpleParameterInMiddle 
14[[#5e470380]]
GetSubselectStringWithSubselectInWhere 
15[[#5e470380]]
GetSubselectStringWithParenthesisOnlyInWhere 
16[[#5e470380]]
GetSubselectStringWithOrderByInSubselect 
17[[#5e470380]]
GetSubselectStringWithFormulaPropertyWithSubselect 
18[[#5e470380]]
GetSubselectStringParameterInOrderBy 
19[[#5e470380]]
GetSubselectStringWithTwoFormulas 
110[[#5e470380]]
GetSubselectStringSimpleEndsWithParameter 
21[[#5e470280]]
"select col from table where col = test order by col" 
22[[#5e470280]]
"select (select foo from bar where foo=col order by foo) from table where col = ? order by col" 
23[[#5e470280]]
"select col from table where col = ? and foo = bar order by col" 
24[[#5e470280]]
"select (select foo from bar where foo=col order by foo) from table where col = (select yadda from blah where yadda=x order by yadda) order by col" 
25[[#5e470280]]
"select col from table where (col = test) order by col" 
26[[#5e470280]]
"select col from table where (col = test) and id in (select id from foo order by bar)" 
27[[#5e470280]]
"select (select (select blah from yadda where blah=foo order by blah) from bar where foo=col order by foo) from table where col = ? order by col" 
28[[#5e470280]]
"select col from table where col = test order by ? asc" 
29[[#5e470280]]
"select (select foo from bar where foo=col order by foo), (select foo from bar where foo=col order by foo) from table where col = ? order by col" 
210[[#5e470280]]
"select col from table where col = ? order by col" 
31[[#5e4701e0]]
" from table where col = test " 
32[[#5e4701e0]]
" from table where col = ? " 
33[[#5e4701e0]]
" from table where col = ? and foo = bar " 
34[[#5e4701e0]]
" from table where col = (select yadda from blah where yadda=x order by yadda) " 
35[[#5e4701e0]]
" from table where (col = test) " 
36[[#5e4701e0]]
" from table where (col = test) and id in (select id from foo order by bar)" 
37[[#5e4701e0]]
" from table where col = ? " 
38[[#5e4701e0]]
" from table where col = test " 
39[[#5e4701e0]]
" from table where col = ? " 
310[[#5e4701e0]]
" from table where col = ? "