Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 4 | 0.968 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 45 | src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs |
2 | 6 | 85 | src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs |
| ||||
[Test] public void EndsWith() { SqlString sql = new SqlString(new string[] { "select", " from table" } ); Assert.IsTrue(sql.EndsWith("ble")); Assert.IsFalse(sql.EndsWith("'")); } |
| ||||
[Test] public void StartsWith() { SqlString sql = new SqlString(new string[] { "select", " from table" } ); Assert.IsTrue(sql.StartsWithCaseInsensitive("s")); Assert.IsFalse(sql.StartsWithCaseInsensitive(",")); } |
| |||
[Test] public void [[#variable296ece40]]() { SqlString sql = new SqlString(new string[] { "select", " from table" } ); Assert.IsTrue(sql. [[#variable296ecdc0]]( [[#variable296ecd40]])); Assert.IsFalse(sql. [[#variable296ecdc0]]( [[#variable296eccc0]])); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#296ece40]] | StartsWith |
1 | 2 | [[#296ece40]] | EndsWith |
2 | 1 | [[#296ecdc0]] | StartsWithCaseInsensitive |
2 | 2 | [[#296ecdc0]] | EndsWith |
3 | 1 | [[#296ecd40]] | "s" |
3 | 2 | [[#296ecd40]] | "ble" |
4 | 1 | [[#296eccc0]] | "," |
4 | 2 | [[#296eccc0]] | "'" |