CloneSet320


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.994statement_list[14]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11692
src/NHibernate.Test/Stats/StatsFixture.cs
214116
src/NHibernate.Test/Stats/StatsFixture.cs
Clone Instance
1
Line Count
16
Source Line
92
Source File
src/NHibernate.Test/Stats/StatsFixture.cs

                        stats = sf.Statistics;
                        stats.Clear();
                        stats.IsStatisticsEnabled = true;
                        s = sf.OpenSession();
                        tx = s.BeginTransaction();
                        europe = FillDb(s);
                        tx.Commit();
                        s.Clear();
                        tx = s.BeginTransaction();
                        Assert.AreEqual(0, stats.CollectionLoadCount);
                        Assert.AreEqual(0, stats.CollectionFetchCount);

                        europe2 = s.Get < Continent > (europe.Id);
                        Assert.AreEqual(1, stats.CollectionLoadCount);
                        Assert.AreEqual(0, stats.CollectionFetchCount,
                                        "Should do direct load, not indirect second load when lazy false and JOIN");


Clone Instance
2
Line Count
14
Source Line
116
Source File
src/NHibernate.Test/Stats/StatsFixture.cs

                        stats = sf.Statistics;
                        stats.Clear();
                        stats.IsStatisticsEnabled = true;
                        s = sf.OpenSession();
                        tx = s.BeginTransaction();
                        europe = FillDb(s);
                        tx.Commit();
                        s.Clear();
                        tx = s.BeginTransaction();
                        Assert.AreEqual(0, stats.CollectionLoadCount);
                        Assert.AreEqual(0, stats.CollectionFetchCount);
                        europe2 = s.Get < Continent > (europe.Id);
                        Assert.AreEqual(1, stats.CollectionLoadCount);
                        Assert.AreEqual(1, stats.CollectionFetchCount, "Should do explicit collection load, not part of the first one");


Clone AbstractionParameter Count: 2Parameter Bindings

stats = sf.Statistics;
stats.Clear();
stats.IsStatisticsEnabled = true;
s = sf.OpenSession();
tx = s.BeginTransaction();
europe = FillDb(s);
tx.Commit();
s.Clear();
tx = s.BeginTransaction();
Assert.AreEqual(0, stats.CollectionLoadCount);
Assert.AreEqual(0, stats.CollectionFetchCount);
europe2 = s.Get < Continent > (europe.Id);
Assert.AreEqual(1, stats.CollectionLoadCount);
Assert.AreEqual( [[#variable68731740]], stats.CollectionFetchCount, [[#variable68731660]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#68731740]]
1 
12[[#68731740]]
0 
21[[#68731660]]
"Should do explicit collection load, not part of the first one" 
22[[#68731660]]
"Should do direct load, not indirect second load when lazy false and JOIN"