Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 4 | 3 | 0.972 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 14 | src/NHibernate.Test/UtilityTest/StringHelperFixture.cs |
2 | 7 | 23 | src/NHibernate.Test/UtilityTest/StringHelperFixture.cs |
3 | 7 | 105 | src/NHibernate.Test/UtilityTest/StringHelperFixture.cs |
4 | 7 | 114 | src/NHibernate.Test/UtilityTest/StringHelperFixture.cs |
| ||||
[Test] public void GetClassnameFromFQType() { const string typeName = "ns1.ns2.classname, as1.as2., pk, lang"; const string expected = "classname"; Assert.AreEqual(expected, StringHelper.GetClassname(typeName)); } |
| ||||
[Test] public void GetClassnameFromFQClass() { const string typeName = "ns1.ns2.classname"; const string expected = "classname"; Assert.AreEqual(expected, StringHelper.GetClassname(typeName)); } |
| ||||
[Test] public void GetClassnameFromGenericType() { const string typeName = "classname`1[innerns1.innerClass]"; const string expected = "classname`1[[innerns1.innerClass]]"; Assert.AreEqual(expected, StringHelper.GetClassname(typeName)); } |
| ||||
[Test] public void GetClassnameFromGenericFQClass() { const string typeName = "ns1.ns2.classname`1[innerns1.innerClass]"; const string expected = "classname`1[[innerns1.innerClass]]"; Assert.AreEqual(expected, StringHelper.GetClassname(typeName)); } |
| |||
[Test] public void [[#variable6fce13c0]]() { const string typeName = [[#variable6fce1340]]; const string expected = [[#variable6fce1280]]; Assert.AreEqual(expected, StringHelper.GetClassname(typeName)); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6fce13c0]] | GetClassnameFromFQType |
1 | 2 | [[#6fce13c0]] | GetClassnameFromFQClass |
1 | 3 | [[#6fce13c0]] | GetClassnameFromGenericType |
1 | 4 | [[#6fce13c0]] | GetClassnameFromGenericFQClass |
2 | 1 | [[#6fce1340]] | "ns1.ns2.classname, as1.as2., pk, lang" |
2 | 2 | [[#6fce1340]] | "ns1.ns2.classname" |
2 | 3 | [[#6fce1340]] | "classname`1[innerns1.innerClass]" |
2 | 4 | [[#6fce1340]] | "ns1.ns2.classname`1[innerns1.innerClass]" |
3 | 1 | [[#6fce1280]] | "classname" |
3 | 2 | [[#6fce1280]] | "classname" |
3 | 3 | [[#6fce1280]] | "classname`1[[innerns1.innerClass]]" |
3 | 4 | [[#6fce1280]] | "classname`1[[innerns1.innerClass]]" |