Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 5 | 0.990 | statement_list[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 937 | src/NHibernate.Test/Legacy/ParentChildTest.cs |
2 | 8 | 946 | 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)); |
| ||||
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)); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28b98ce0]] | Upgrade |
1 | 2 | [[#28b98ce0]] | None |
2 | 1 | [[#28b98e40]] | Upgrade |
2 | 2 | [[#28b98e40]] | Read |
3 | 1 | [[#28b98e20]] | None |
3 | 2 | [[#28b98e20]] | Read |
4 | 1 | [[#2ba813e0]] | Read |
4 | 2 | [[#2ba813e0]] | Upgrade |
5 | 1 | [[#28b98cc0]] | Upgrade |
5 | 2 | [[#28b98cc0]] | UpgradeNoWait |