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.983 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 1987 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 7 | 1997 | src/NHibernate.Test/Legacy/FooBarTest.cs |
| ||||
[Test] public void VerifyParameterNamedMissing() { using (ISession s = OpenSession()) { IQuery q = s.CreateQuery("select bar from Bar as bar where bar.X > :myX"); Assert.Throws<QueryException> (() => q.List()); } } |
| ||||
[Test] public void VerifyParameterPositionalMissing() { using (ISession s = OpenSession()) { IQuery q = s.CreateQuery("select bar from Bar as bar where bar.X > ?"); Assert.Throws<QueryException> (() => q.List()); } } |
| |||
[Test] public void [[#variable2bcc30a0]]() { using (ISession s = OpenSession()) { IQuery q = s.CreateQuery( [[#variable272960c0]]); Assert.Throws<QueryException> (() => q.List()); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2bcc30a0]] | VerifyParameterNamedMissing |
1 | 2 | [[#2bcc30a0]] | VerifyParameterPositionalMissing |
2 | 1 | [[#272960c0]] | "select bar from Bar as bar where bar.X > :myX" |
2 | 2 | [[#272960c0]] | "select bar from Bar as bar where bar.X > ?" |