Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 4 | 4 | 0.967 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 11 | src/NHibernate.Test/EngineTest/CallableParserFixture.cs |
2 | 7 | 20 | src/NHibernate.Test/EngineTest/CallableParserFixture.cs |
3 | 7 | 47 | src/NHibernate.Test/EngineTest/CallableParserFixture.cs |
4 | 7 | 56 | src/NHibernate.Test/EngineTest/CallableParserFixture.cs |
| ||||
[Test] public void CanDetermineIsCallable() { string query = @"{ call myFunction(:name) }"; CallableParser.Detail detail = CallableParser.Parse(query); Assert.That(detail.IsCallable, Is.True); } |
| ||||
[Test] public void CanDetermineIsNotCallable() { string query = @"SELECT id FROM mytable"; CallableParser.Detail detail = CallableParser.Parse(query); Assert.That(detail.IsCallable, Is.False); } |
| ||||
[Test] public void CanDetermineHasReturn() { string query = @"{ ? = call myFunction(:name) }"; CallableParser.Detail detail = CallableParser.Parse(query); Assert.That(detail.HasReturn, Is.True); } |
| ||||
[Test] public void CanDetermineHasNoReturn() { string query = @"{ call myFunction(:name) }"; CallableParser.Detail detail = CallableParser.Parse(query); Assert.That(detail.HasReturn, Is.False); } |
| |||
[Test] public void [[#variable282e2980]]() { string query = [[#variable2a9f9500]]; CallableParser.Detail detail = CallableParser.Parse(query); Assert.That(detail. [[#variable5e44a160]], Is. [[#variable282e2620]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#282e2980]] | CanDetermineIsCallable |
1 | 2 | [[#282e2980]] | CanDetermineIsNotCallable |
1 | 3 | [[#282e2980]] | CanDetermineHasReturn |
1 | 4 | [[#282e2980]] | CanDetermineHasNoReturn |
2 | 1 | [[#2a9f9500]] | @"{ call myFunction(:name) }" |
2 | 2 | [[#2a9f9500]] | @"SELECT id FROM mytable" |
2 | 3 | [[#2a9f9500]] | @"{ ? = call myFunction(:name) }" |
2 | 4 | [[#2a9f9500]] | @"{ call myFunction(:name) }" |
3 | 1 | [[#5e44a160]] | IsCallable |
3 | 2 | [[#5e44a160]] | IsCallable |
3 | 3 | [[#5e44a160]] | HasReturn |
3 | 4 | [[#5e44a160]] | HasReturn |
4 | 1 | [[#282e2620]] | True |
4 | 2 | [[#282e2620]] | False |
4 | 3 | [[#282e2620]] | True |
4 | 4 | [[#282e2620]] | False |