CloneSet206


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21260.977statement_list[12]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121518
src/NHibernate.Test/Legacy/MultiTableTest.cs
222590
src/NHibernate.Test/Legacy/MultiTableTest.cs
Clone Instance
1
Line Count
21
Source Line
518
Source File
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);


Clone Instance
2
Line Count
22
Source Line
590
Source File
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(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);


Clone AbstractionParameter Count: 6Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#66316ee0]]
ls 
12[[#66316ee0]]
multi 
21[[#66316f60]]
Another 
22[[#66316f60]]
YetAnother 
31[[#66317300]]
AreSame 
32[[#66317300]]
AreEqual 
41[[#584b82e0]]
ls 
42[[#584b82e0]]
"name" 
51[[#66317020]]
ls 
52[[#66317020]]
ls.Another 
61[[#66316e40]]
YetAnother 
62[[#66316e40]]
Name