CloneSet1119


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6230.981class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16212
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
26220
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs
Clone Instance
1
Line Count
6
Source Line
212
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void SubstringStartingWithLast()
                {
                        SqlString sql = new SqlString(new object[] { "select x from y where z = ", Parameter.Placeholder, " order by t"
                                                                   } );
                        Assert.AreEqual("order by t", sql.SubstringStartingWithLast("order by").ToString());
                }



Clone Instance
2
Line Count
6
Source Line
220
Source File
src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs

                [Test]
                public void NoSubstringStartingWithLast()
                {
                        SqlString sql = new SqlString(new object[] { "select x from y where z = ", Parameter.Placeholder, " order by t"
                                                                   } );
                        Assert.AreEqual("", sql.SubstringStartingWithLast("zzz").ToString());
                }



Clone AbstractionParameter Count: 3Parameter Bindings

[Test]
public void [[#variable2b3e81e0]]()
{
   SqlString sql = new SqlString(new object[]
                                 {
                                    "select x from y where z = ", Parameter.Placeholder, " order by t"
                                 } );
   Assert.AreEqual( [[#variable45ec7ce0]], sql.SubstringStartingWithLast( [[#variable2b3e8100]]).ToString());
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2b3e81e0]]
SubstringStartingWithLast 
12[[#2b3e81e0]]
NoSubstringStartingWithLast 
21[[#45ec7ce0]]
"order by t" 
22[[#45ec7ce0]]
"" 
31[[#2b3e8100]]
"order by" 
32[[#2b3e8100]]
"zzz"