Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.985 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 29 | src/NHibernate.Test/EngineTest/CallableParserFixture.cs |
2 | 7 | 38 | src/NHibernate.Test/EngineTest/CallableParserFixture.cs |
| ||||
[Test] public void CanFindCallableFunctionName() { string query = @"{ call myFunction(:name) }"; CallableParser.Detail detail = CallableParser.Parse(query); Assert.That(detail.FunctionName, Is.EqualTo("myFunction")); } |
| ||||
[Test] public void CanFindCallableFunctionNameWithoutParameters() { string query = @"{ call myFunction }"; CallableParser.Detail detail = CallableParser.Parse(query); Assert.That(detail.FunctionName, Is.EqualTo("myFunction")); } |
| |||
[Test] public void [[#variable4e8b6580]]() { string query = [[#variable4e8b7cc0]]; CallableParser.Detail detail = CallableParser.Parse(query); Assert.That(detail.FunctionName, Is.EqualTo("myFunction")); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4e8b6580]] | CanFindCallableFunctionName |
1 | 2 | [[#4e8b6580]] | CanFindCallableFunctionNameWithoutParameters |
2 | 1 | [[#4e8b7cc0]] | @"{ call myFunction(:name) }" |
2 | 2 | [[#4e8b7cc0]] | @"{ call myFunction }" |