Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 4 | 0.959 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 178 | src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs |
2 | 9 | 189 | src/NHibernate.Test/SqlCommandTest/SqlStringFixture.cs |
| ||||
[Test] public void TrimBeginParamEndString() { Parameter p1 = Parameter.Placeholder; SqlString sql = new SqlString(new object[] { p1, " extra space " } ); sql = sql.Trim(); Assert.AreEqual("? extra space", sql.ToString()); } |
| ||||
[Test] public void TrimBeginStringEndParam() { Parameter p1 = Parameter.Placeholder; SqlString sql = new SqlString(new object[] { " extra space ", p1 } ); sql = sql.Trim(); Assert.AreEqual("extra space ?", sql.ToString()); } |
| |||
[Test] public void [[#variable5568e8a0]]() { Parameter p1 = Parameter.Placeholder; SqlString sql = new SqlString(new object[] { [[#variable5568e7a0]], [[#variable70e7c860]] } ); sql = sql.Trim(); Assert.AreEqual( [[#variable5568e600]], sql.ToString()); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5568e8a0]] | TrimBeginParamEndString |
1 | 2 | [[#5568e8a0]] | TrimBeginStringEndParam |
2 | 1 | [[#5568e7a0]] | p1 |
2 | 2 | [[#5568e7a0]] | " extra space " |
3 | 1 | [[#70e7c860]] | " extra space " |
3 | 2 | [[#70e7c860]] | p1 |
4 | 1 | [[#5568e600]] | "? extra space" |
4 | 2 | [[#5568e600]] | "extra space ?" |