Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 3 | 0.989 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 12 | src/NHibernate.Test/NHSpecificTest/NH1253/Fixture.cs |
2 | 13 | 29 | src/NHibernate.Test/NHSpecificTest/NH1253/Fixture.cs |
| ||||
// The test only check that there are no lost parameter set (no exception) [Test] public void TestParametersWithTrailingNumbersSingleInList() { using (ISession s = OpenSession()) { using (ITransaction tx = s.BeginTransaction()) { IQuery q = s.CreateQuery("from Car c where c.Make in (:param1) or c.Model in (:param11)"); q.SetParameterList("param11", new string[] { "Model1", "Model2" } ); q.SetParameterList("param1", new string[] { "Make1", "Make2" } ); IList<Car> cars = q.List<Car> (); tx.Commit(); } } } |
| ||||
[Test] public void TestParametersWithTrailingNumbersSingleInListReverse() { using (ISession s = OpenSession()) { using (ITransaction tx = s.BeginTransaction()) { IQuery q = s.CreateQuery("from Car c where c.Make in (:param1) or c.Model in (:param11)"); q.SetParameterList("param1", new string[] { "Model1", "Model2" } ); q.SetParameterList("param11", new string[] { "Make1", "Make2" } ); IList<Car> cars = q.List<Car> (); tx.Commit(); } } } |
| |||
// The test only check that there are no lost parameter set (no exception) [Test] public void [[#variable56abd920]]() { using (ISession s = OpenSession()) { using (ITransaction tx = s.BeginTransaction()) { IQuery q = s.CreateQuery("from Car c where c.Make in (:param1) or c.Model in (:param11)"); q.SetParameterList( [[#variable56abd8c0]], new string[] { "Model1", "Model2" } ); q.SetParameterList( [[#variable56abd840]], new string[] { "Make1", "Make2" } ); IList<Car> cars = q.List<Car> (); tx.Commit(); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56abd920]] | TestParametersWithTrailingNumbersSingleInList |
1 | 2 | [[#56abd920]] | TestParametersWithTrailingNumbersSingleInListReverse |
2 | 1 | [[#56abd8c0]] | "param11" |
2 | 2 | [[#56abd8c0]] | "param1" |
3 | 1 | [[#56abd840]] | "param1" |
3 | 2 | [[#56abd840]] | "param11" |