CloneSet194


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8250.990statement_list[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18937
src/NHibernate.Test/Legacy/ParentChildTest.cs
28946
src/NHibernate.Test/Legacy/ParentChildTest.cs
Clone Instance
1
Line Count
8
Source Line
937
Source File
src/NHibernate.Test/Legacy/ParentChildTest.cs

                        s1 = (Simple) s.Load( typeof(Simple), (long) 1, LockMode.None);
                        Assert.AreEqual(LockMode.Read, s.GetCurrentLockMode(s1));
                        s2 = (Simple) s.Load( typeof(Simple), (long) 2, LockMode.Read);
                        Assert.AreEqual(LockMode.Read, s.GetCurrentLockMode(s2));
                        s3 = (Simple) s.Load( typeof(Simple), (long) 3, LockMode.Upgrade);
                        Assert.AreEqual(LockMode.Upgrade, s.GetCurrentLockMode(s3));
                        s4 = (Simple) s.Load( typeof(Simple), (long) 4, LockMode.UpgradeNoWait);
                        Assert.AreEqual(LockMode.UpgradeNoWait, s.GetCurrentLockMode(s4));


Clone Instance
2
Line Count
8
Source Line
946
Source File
src/NHibernate.Test/Legacy/ParentChildTest.cs

                        s1 = (Simple) s.Load( typeof(Simple), (long) 1, LockMode.Upgrade); //upgrade
                        Assert.AreEqual(LockMode.Upgrade, s.GetCurrentLockMode(s1));
                        s2 = (Simple) s.Load( typeof(Simple), (long) 2, LockMode.None);
                        Assert.AreEqual(LockMode.Read, s.GetCurrentLockMode(s2));
                        s3 = (Simple) s.Load( typeof(Simple), (long) 3, LockMode.Read);
                        Assert.AreEqual(LockMode.Upgrade, s.GetCurrentLockMode(s3));
                        s4 = (Simple) s.Load( typeof(Simple), (long) 4, LockMode.Upgrade);
                        Assert.AreEqual(LockMode.UpgradeNoWait, s.GetCurrentLockMode(s4));


Clone AbstractionParameter Count: 5Parameter Bindings

s1 = (Simple)s.Load( typeof(Simple), (long)1, LockMode. [[#variable28b98ce0]]); //upgrade
Assert.AreEqual(LockMode. [[#variable28b98e40]], s.GetCurrentLockMode(s1));
s2 = (Simple)s.Load( typeof(Simple), (long)2, LockMode. [[#variable28b98e20]]);
Assert.AreEqual(LockMode.Read, s.GetCurrentLockMode(s2));
s3 = (Simple)s.Load( typeof(Simple), (long)3, LockMode. [[#variable2ba813e0]]);
Assert.AreEqual(LockMode.Upgrade, s.GetCurrentLockMode(s3));
s4 = (Simple)s.Load( typeof(Simple), (long)4, LockMode. [[#variable28b98cc0]]);
Assert.AreEqual(LockMode.UpgradeNoWait, s.GetCurrentLockMode(s4));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#28b98ce0]]
Upgrade 
12[[#28b98ce0]]
None 
21[[#28b98e40]]
Upgrade 
22[[#28b98e40]]
Read 
31[[#28b98e20]]
None 
32[[#28b98e20]]
Read 
41[[#2ba813e0]]
Read 
42[[#2ba813e0]]
Upgrade 
51[[#28b98cc0]]
Upgrade 
52[[#28b98cc0]]
UpgradeNoWait