| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 2 | 0.980 | statement_list[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 67 | src/NHibernate.Test/Stats/StatsFixture.cs |
| 2 | 4 | 83 | src/NHibernate.Test/Stats/StatsFixture.cs |
| ||||
Assert.AreEqual(1, stats.CollectionLoadCount);
Assert.AreEqual(1, stats.CollectionFetchCount, "Explicit fetch of the collection state");
tx.Commit();
s.Close();
|
| ||||
Assert.AreEqual(1, stats.CollectionLoadCount);
Assert.AreEqual(0, stats.CollectionFetchCount, "collection should be loaded in the same query as its parent");
tx.Commit();
s.Close();
|
| |||
Assert.AreEqual(1, stats.CollectionLoadCount); Assert.AreEqual( [[#variable6fcbd7a0]], stats.CollectionFetchCount, [[#variable6fcbe600]]); tx.Commit(); s.Close(); |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6fcbd7a0]] | 1 |
| 1 | 2 | [[#6fcbd7a0]] | 0 |
| 2 | 1 | [[#6fcbe600]] | "Explicit fetch of the collection state" |
| 2 | 2 | [[#6fcbe600]] | "collection should be loaded in the same query as its parent" |