Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.986 | statement_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 239 | src/NHibernate.Test/Operations/MergeFixture.cs |
2 | 10 | 257 | src/NHibernate.Test/Operations/MergeFixture.cs |
| ||||
using (ISession s = OpenSession()) { ITransaction tx = s.BeginTransaction(); root = (NumberedNode) s.Merge(root); tx.Commit(); } AssertInsertCount(1); AssertUpdateCount(1); ClearCounts(); |
| ||||
using (ISession s = OpenSession()) { ITransaction tx = s.BeginTransaction(); root = (NumberedNode) s.Merge(root); tx.Commit(); } AssertInsertCount(2); AssertUpdateCount(0); ClearCounts(); |
| |||
using (ISession s = OpenSession()) { ITransaction tx = s.BeginTransaction(); root = (NumberedNode)s.Merge(root); tx.Commit(); } AssertInsertCount( [[#variable5f490140]]); AssertUpdateCount( [[#variable5f490120]]); ClearCounts(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5f490140]] | 2 |
1 | 2 | [[#5f490140]] | 1 |
2 | 1 | [[#5f490120]] | 0 |
2 | 2 | [[#5f490120]] | 1 |