CloneSet476


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.989class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11312
src/NHibernate.Test/NHSpecificTest/NH1253/Fixture.cs
21329
src/NHibernate.Test/NHSpecificTest/NH1253/Fixture.cs
Clone Instance
1
Line Count
13
Source Line
12
Source File
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();
                                }
                        }
                }



Clone Instance
2
Line Count
13
Source Line
29
Source File
src/NHibernate.Test/NHSpecificTest/NH1253/Fixture.cs

                [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();
                                }
                        }
                }



Clone AbstractionParameter Count: 3Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56abd920]]
TestParametersWithTrailingNumbersSingleInList 
12[[#56abd920]]
TestParametersWithTrailingNumbersSingleInListReverse 
21[[#56abd8c0]]
"param11" 
22[[#56abd8c0]]
"param1" 
31[[#56abd840]]
"param1" 
32[[#56abd840]]
"param11"