| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 3 | 0.985 | statement_list[6] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 4329 | src/NHibernate.Test/Legacy/FooBarTest.cs |
| 2 | 6 | 4341 | src/NHibernate.Test/Legacy/FooBarTest.cs |
| ||||
foo.Component = null;
s = OpenSession();
txn = s.BeginTransaction();
s.Load(foo, foo.Key);
Assert.AreEqual("IFA", foo.Component.Name, "save components");
Assert.AreEqual("bar", foo.Component.Subcomponent.Name, "save subcomponent");
|
| ||||
foo.Component = null;
s = OpenSession();
txn = s.BeginTransaction();
s.Load(foo, foo.Key);
Assert.AreEqual("IFA", foo.Component.Name, "update components");
Assert.AreEqual("baz", foo.Component.Subcomponent.Name, "update subcomponent");
|
| |||
foo.Component = null;
s = OpenSession();
txn = s.BeginTransaction();
s.Load(foo, foo.Key);
Assert.AreEqual("IFA", foo.Component.Name, [[#variable4ff98200]]);
Assert.AreEqual( [[#variable2d183120]], foo.Component.Subcomponent.Name, [[#variable4ff981e0]]);
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#4ff98200]] | "update components" |
| 1 | 2 | [[#4ff98200]] | "save components" |
| 2 | 1 | [[#2d183120]] | "baz" |
| 2 | 2 | [[#2d183120]] | "bar" |
| 3 | 1 | [[#4ff981e0]] | "update subcomponent" |
| 3 | 2 | [[#4ff981e0]] | "save subcomponent" |