Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
26 | 2 | 3 | 0.982 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 1 | src/NHibernate.Test/IdTest/IdFixtureBase.cs |
2 | 32 | 1 | src/NHibernate.Test/TypesTest/TypeFixtureBase.cs |
| ||||
using System; using System.Collections; namespace NHibernate.Test.IdTest { public abstract class IdFixtureBase : TestCase { protected abstract string TypeName { get ; } protected override string MappingsAssembly { get { return "NHibernate.Test"; } } protected override IList Mappings { get { return new string[] { String.Format("IdTest.{0}Class.hbm.xml", TypeName) } ; } } } } |
| ||||
using System; using System.Collections; namespace NHibernate.Test.TypesTest { /// <summary> /// Base class for fixtures testing individual types, created to avoid /// code duplication in derived classes. It assumes that the fixture /// uses mapping file named "(TypeName)Class.hbm.xml" placed in TypesTest /// directory in NHibernate.Test assembly. /// </summary> public abstract class TypeFixtureBase : TestCase { protected abstract string TypeName { get ; } protected override string MappingsAssembly { get { return "NHibernate.Test"; } } protected override IList Mappings { get { return new string[] { String.Format("TypesTest.{0}Class.hbm.xml", TypeName) } ; } } } } |
| |||
using System; using System.Collections; namespace NHibernate.Test. [[#variable26d8f6a0]] { /// <summary> /// Base class for fixtures testing individual types, created to avoid /// code duplication in derived classes. It assumes that the fixture /// uses mapping file named "(TypeName)Class.hbm.xml" placed in TypesTest /// directory in NHibernate.Test assembly. /// </summary> public abstract class [[#variable2c821d80]]: TestCase { protected abstract string TypeName { get ; } protected override string MappingsAssembly { get { return "NHibernate.Test"; } } protected override IList Mappings { get { return new string[] { String.Format( [[#variable26128de0]], TypeName) } ; } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#26d8f6a0]] | IdTest |
1 | 2 | [[#26d8f6a0]] | TypesTest |
2 | 1 | [[#2c821d80]] | IdFixtureBase |
2 | 2 | [[#2c821d80]] | TypeFixtureBase |
3 | 1 | [[#26128de0]] | "IdTest.{0}Class.hbm.xml" |
3 | 2 | [[#26128de0]] | "TypesTest.{0}Class.hbm.xml" |