Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 3 | 3 | 0.978 | statement_list[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 181 | src/NHibernate.Test/Operations/MergeFixture.cs |
2 | 10 | 421 | src/NHibernate.Test/Operations/MergeFixture.cs |
3 | 10 | 455 | src/NHibernate.Test/Operations/MergeFixture.cs |
| ||||
root.AddChild(child2); s = OpenSession(); tx = s.BeginTransaction(); s.Merge(root); tx.Commit(); s.Close(); AssertInsertCount(2); AssertUpdateCount(0); |
| ||||
root.AddChild(secondChild); s = OpenSession(); tx = s.BeginTransaction(); s.Merge(root); tx.Commit(); s.Close(); AssertInsertCount(1); AssertUpdateCount(2); |
| ||||
root.AddChild(secondChild); s = OpenSession(); tx = s.BeginTransaction(); s.Merge(root); tx.Commit(); s.Close(); AssertInsertCount(1); AssertUpdateCount(2); |
| |||
root.AddChild( [[#variable5847a240]]); s = OpenSession(); tx = s.BeginTransaction(); s.Merge(root); tx.Commit(); s.Close(); AssertInsertCount( [[#variable501ee960]]); AssertUpdateCount( [[#variable652a9da0]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5847a240]] | secondChild |
1 | 2 | [[#5847a240]] | child2 |
1 | 3 | [[#5847a240]] | secondChild |
2 | 1 | [[#501ee960]] | 1 |
2 | 2 | [[#501ee960]] | 2 |
2 | 3 | [[#501ee960]] | 1 |
3 | 1 | [[#652a9da0]] | 2 |
3 | 2 | [[#652a9da0]] | 0 |
3 | 3 | [[#652a9da0]] | 2 |