Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 6 | 0.968 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 169 | src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs |
2 | 12 | 200 | src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs |
| ||||
{ string[] routes = CreateRoutes(); Country country = CreateCountry(routes); Save(country); using (ISession session = OpenSession()) { var c = session.Get < Country > (country.Code); Assert.That(c, Is.Not.Null, "country"); Assert.That(c.Routes, Is.EquivalentTo(routes), "country.Routes"); } Cleanup(); } |
| ||||
{ City[] cities = CreateCities(); Country country = CreateCountry(cities); Save(country); using (ISession session = OpenSession()) { var c = session.Get < Country > (country.Code); Assert.That(c, Is.Not.Null, "country"); Assert.That(c.Cities, Is.EquivalentTo(cities), "country.Cities"); } CleanupWithCities(); } |
| |||
{ [[#variable4ff9f0c0]][] [[#variable4ff9f040]]= [[#variable4ff9efa0]](); Country country = CreateCountry( [[#variable4ff9f040]]); Save(country); using (ISession session = OpenSession()) { var c = session.Get < Country > (country.Code); Assert.That(c, Is.Not.Null, "country"); Assert.That(c. [[#variable4ff9eee0]], Is.EquivalentTo( [[#variable4ff9f040]]), [[#variable4ff9ee40]]); } [[#variable4ff9edc0]](); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4ff9f0c0]] | string |
1 | 2 | [[#4ff9f0c0]] | City |
2 | 1 | [[#4ff9f040]] | routes |
2 | 2 | [[#4ff9f040]] | cities |
3 | 1 | [[#4ff9efa0]] | CreateRoutes |
3 | 2 | [[#4ff9efa0]] | CreateCities |
4 | 1 | [[#4ff9eee0]] | Routes |
4 | 2 | [[#4ff9eee0]] | Cities |
5 | 1 | [[#4ff9ee40]] | "country.Routes" |
5 | 2 | [[#4ff9ee40]] | "country.Cities" |
6 | 1 | [[#4ff9edc0]] | Cleanup |
6 | 2 | [[#4ff9edc0]] | CleanupWithCities |