CloneSet869


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.989statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18253
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs
28262
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs
Clone Instance
1
Line Count
8
Source Line
253
Source File
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs

                        using (ISession s = OpenSession())
                        using (ITransaction tx = s.BeginTransaction())
                        {
                                s.CreateQuery(queryString).SetCacheable(true).SetResultTransformer(transformer).List();
                                tx.Commit();
                        }

                        Assert.That(qs.CacheHitCount, Is.EqualTo(1), "hit count should not go up since we are adding a resulttransformer");


Clone Instance
2
Line Count
8
Source Line
262
Source File
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs

                        using (ISession s = OpenSession())
                        using (ITransaction tx = s.BeginTransaction())
                        {
                                s.CreateQuery(queryString).SetCacheable(true).SetResultTransformer(transformer).List();
                                tx.Commit();
                        }

                        Assert.That(qs.CacheHitCount, Is.EqualTo(2), "hit count should go up since we are using the same resulttransformer");


Clone AbstractionParameter Count: 2Parameter Bindings

using (ISession s = OpenSession())
   using (ITransaction tx = s.BeginTransaction())
   {
      s.CreateQuery(queryString).SetCacheable(true).SetResultTransformer(transformer).List();
      tx.Commit();
   }
Assert.That(qs.CacheHitCount, Is.EqualTo( [[#variable4ef8bca0]]), [[#variable4ef8bc60]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4ef8bca0]]
2 
12[[#4ef8bca0]]
1 
21[[#4ef8bc60]]
"hit count should go up since we are using the same resulttransformer" 
22[[#4ef8bc60]]
"hit count should not go up since we are adding a resulttransformer"