| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 3 | 0.981 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 6 | 212 | src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs |
| 2 | 6 | 220 | 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());
}
|
| ||||
[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());
}
|
| |||
[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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#2b3e81e0]] | SubstringStartingWithLast |
| 1 | 2 | [[#2b3e81e0]] | NoSubstringStartingWithLast |
| 2 | 1 | [[#45ec7ce0]] | "order by t" |
| 2 | 2 | [[#45ec7ce0]] | "" |
| 3 | 1 | [[#2b3e8100]] | "order by" |
| 3 | 2 | [[#2b3e8100]] | "zzz" |