Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 1 | 0.987 | statement_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 779 | src/NHibernate.Test/Legacy/ParentChildTest.cs |
2 | 11 | 801 | src/NHibernate.Test/Legacy/ParentChildTest.cs |
| ||||
Assert.AreEqual(1, c.LazyBag.Count); t.Commit(); s.Close(); s = OpenSession(); |
| ||||
Assert.AreEqual(3, c.LazyBag.Count); //forces initialization // s.Save(c4); commented in h2.0.3 also t.Commit(); s.Close(); // new test code in here to catch when a lazy bag has an addition then // is flushed and then an operation that causes it to read from the db // occurs - this used to cause the element in Add(element) to be in there // twice and throw off the count by 1 (or by however many additions were // made before the flush s = OpenSession(); |
| |||
Assert.AreEqual( [[#variable65290340]], c.LazyBag.Count); //forces initialization // s.Save(c4); commented in h2.0.3 also t.Commit(); s.Close(); // new test code in here to catch when a lazy bag has an addition then // is flushed and then an operation that causes it to read from the db // occurs - this used to cause the element in Add(element) to be in there // twice and throw off the count by 1 (or by however many additions were // made before the flush s = OpenSession(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#65290340]] | 1 |
1 | 2 | [[#65290340]] | 3 |