CloneSet188


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19230.990statement_list[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119175
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs
219283
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs
Clone Instance
1
Line Count
19
Source Line
175
Source File
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs

                        Thread.Sleep(200);

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

                                var i = s.Get < Item > (savedId);
                                Assert.That(i.Name, Is.EqualTo("Widget"));

                                s.Delete(i);
                                tx.Commit();
                        }

                        Assert.That(qs.CacheHitCount, Is.EqualTo(2));
                        Assert.That(qs.CacheMissCount, Is.EqualTo(3));
                        Assert.That(qs.CachePutCount, Is.EqualTo(3));
                        Assert.That(qs.ExecutionCount, Is.EqualTo(3));
                        Assert.That(es.FetchCount, Is.EqualTo(0)); //check that it was being cached


Clone Instance
2
Line Count
19
Source Line
283
Source File
src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs

                        Thread.Sleep(200);

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

                                var i = s.Get < AnotherItem > (savedId);
                                Assert.That(i.Name, Is.EqualTo("Widget"));

                                s.Delete(i);
                                tx.Commit();
                        }

                        Assert.That(qs.CacheHitCount, Is.EqualTo(3));
                        Assert.That(qs.CacheMissCount, Is.EqualTo(4));
                        Assert.That(qs.CachePutCount, Is.EqualTo(4));
                        Assert.That(qs.ExecutionCount, Is.EqualTo(4));
                        Assert.That(es.FetchCount, Is.EqualTo(0)); //check that it was being cached


Clone AbstractionParameter Count: 3Parameter Bindings

Thread.Sleep(200);
using (ISession s = OpenSession())
   using (ITransaction tx = s.BeginTransaction())
   {
      s.CreateQuery(queryString).SetCacheable(true).List();
      var i = s.Get < [[#variable2a8c0c80]]> (savedId);
      Assert.That(i.Name, Is.EqualTo("Widget"));
      s.Delete(i);
      tx.Commit();
   }
Assert.That(qs.CacheHitCount, Is.EqualTo( [[#variable55364da0]]));
Assert.That(qs.CacheMissCount, Is.EqualTo( [[#variable54af0820]]));
Assert.That(qs.CachePutCount, Is.EqualTo( [[#variable54af0820]]));
Assert.That(qs.ExecutionCount, Is.EqualTo( [[#variable54af0820]]));
Assert.That(es.FetchCount, Is.EqualTo(0)); //check that it was being cached
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2a8c0c80]]
AnotherItem 
12[[#2a8c0c80]]
Item 
21[[#55364da0]]
3 
22[[#55364da0]]
2 
31[[#54af0820]]
4 
32[[#54af0820]]
3