Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 3 | 3 | 0.962 | statement_list[12] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 36 | src/NHibernate.Test/TypesTest/BooleanTypeFixture.cs |
2 | 16 | 35 | src/NHibernate.Test/TypesTest/ByteTypeFixture.cs |
3 | 16 | 44 | src/NHibernate.Test/TypesTest/GuidTypeFixture.cs |
| ||||
basic.Id = 1; basic.BooleanValue = true; ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); s = OpenSession(); basic = (BooleanClass) s.Load( typeof(BooleanClass), 1); Assert.AreEqual(true, basic.BooleanValue); s.Delete(basic); s.Flush(); s.Close(); |
| ||||
basic.Id = 1; basic.ByteValue = (byte) 43; ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); s = OpenSession(); basic = (ByteClass) s.Load( typeof(ByteClass), 1); Assert.AreEqual((byte) 43, basic.ByteValue); s.Delete(basic); s.Flush(); s.Close(); |
| ||||
basic.Id = 1; basic.GuidValue = val; ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); s = OpenSession(); basic = (GuidClass)s.Load( typeof(GuidClass), 1); Assert.AreEqual(val, basic.GuidValue); s.Delete(basic); s.Flush(); s.Close(); |
| |||
basic.Id = 1; basic. [[#variable4ffb23c0]]= [[#variable50ce2d00]]; ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); s = OpenSession(); basic = ( [[#variable4ffb2400]])s.Load( typeof( [[#variable4ffb2400]]), 1); Assert.AreEqual( [[#variable50ce2d00]], basic. [[#variable4ffb23c0]]); s.Delete(basic); s.Flush(); s.Close(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4ffb23c0]] | BooleanValue |
1 | 2 | [[#4ffb23c0]] | ByteValue |
1 | 3 | [[#4ffb23c0]] | GuidValue |
2 | 1 | [[#50ce2d00]] | true |
2 | 2 | [[#50ce2d00]] | (byte)43 |
2 | 3 | [[#50ce2d00]] | val |
3 | 1 | [[#4ffb2400]] | BooleanClass |
3 | 2 | [[#4ffb2400]] | ByteClass |
3 | 3 | [[#4ffb2400]] | GuidClass |