Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 6 | 0.977 | statement_list[12] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 518 | src/NHibernate.Test/Legacy/MultiTableTest.cs |
2 | 22 | 590 | src/NHibernate.Test/Legacy/MultiTableTest.cs |
| ||||
if ((Dialect is SybaseDialect) || (Dialect is MsSql2000Dialect)) { id = s.Save(ls); } else { id = 2L; s.Save(ls, id); } t.Commit(); s.Close(); Assert.AreSame(ls, ls.Other); Assert.AreSame(ls, ls.Another); Assert.AreSame(ls, ls.YetAnother); s = OpenSession(); t = s.BeginTransaction(); ls = (Lower) s.Load( typeof(Lower), id); Assert.AreSame(ls, ls.Other); Assert.AreSame(ls, ls.Another); Assert.AreSame(ls, ls.YetAnother); |
| ||||
if ((Dialect is SybaseDialect) || (Dialect is MsSql2000Dialect)) { id = s.Save(ls); } else { id = 2L; s.Save(ls, id); } t.Commit(); s.Close(); Assert.AreSame(ls, ls.Other); Assert.AreSame(multi, ls.Another); Assert.AreSame(ls, ls.YetAnother); s = OpenSession(); t = s.BeginTransaction(); ls = (Lower) s.Load( typeof(Lower), id); Assert.AreSame(ls, ls.Other); Assert.AreSame(ls, ls.YetAnother); Assert.AreEqual("name", ls.Another.Name); |
| |||
if ((Dialect is SybaseDialect) || (Dialect is MsSql2000Dialect)) { id = s.Save(ls); } else { id = 2L; s.Save(ls, id); } t.Commit(); s.Close(); Assert.AreSame(ls, ls.Other); Assert.AreSame( [[#variable66316ee0]], ls.Another); Assert.AreSame(ls, ls.YetAnother); s = OpenSession(); t = s.BeginTransaction(); ls = (Lower)s.Load( typeof(Lower), id); Assert.AreSame(ls, ls.Other); Assert.AreSame(ls, ls. [[#variable66316f60]]); Assert. [[#variable66317300]]( [[#variable584b82e0]], [[#variable66317020]]. [[#variable66316e40]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#66316ee0]] | ls |
1 | 2 | [[#66316ee0]] | multi |
2 | 1 | [[#66316f60]] | Another |
2 | 2 | [[#66316f60]] | YetAnother |
3 | 1 | [[#66317300]] | AreSame |
3 | 2 | [[#66317300]] | AreEqual |
4 | 1 | [[#584b82e0]] | ls |
4 | 2 | [[#584b82e0]] | "name" |
5 | 1 | [[#66317020]] | ls |
5 | 2 | [[#66317020]] | ls.Another |
6 | 1 | [[#66316e40]] | YetAnother |
6 | 2 | [[#66316e40]] | Name |