Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 3 | 0.976 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 210 | src/NHibernate.Test/UtilityTest/SequencedHashMapFixture.cs |
2 | 16 | 229 | src/NHibernate.Test/UtilityTest/SequencedHashMapFixture.cs |
| ||||
[Test] public void Keys() { int i = 0; foreach (object obj in _shm.Keys) { i++; Assert.IsTrue(_expectedKeys.Contains(obj)); } Assert.AreEqual(3, i); SequencedHashMap empty = new SequencedHashMap(); foreach (object obj in empty.Keys) { Assert.Fail("should not be a key: " + obj); } } |
| ||||
[Test] public void Values() { int i = 0; foreach (object obj in _shm.Values) { i++; Assert.IsTrue(_expectedValues.Contains(obj)); } Assert.AreEqual(3, i); SequencedHashMap empty = new SequencedHashMap(); foreach (object obj in empty.Values) { Assert.Fail("should not be a value:" + obj); } } |
| |||
[Test] public void [[#variable26d8ea40]]() { int i = 0; foreach (object obj in _shm. [[#variable26d8ea40]]) { i++; Assert.IsTrue( [[#variable297b44c0]].Contains(obj)); } Assert.AreEqual(3, i); SequencedHashMap empty = new SequencedHashMap(); foreach (object obj in empty. [[#variable26d8ea40]]) { Assert.Fail( [[#variable2d77a380]]+ obj); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#26d8ea40]] | Values |
1 | 2 | [[#26d8ea40]] | Keys |
2 | 1 | [[#297b44c0]] | _expectedValues |
2 | 2 | [[#297b44c0]] | _expectedKeys |
3 | 1 | [[#2d77a380]] | "should not be a value:" |
3 | 2 | [[#2d77a380]] | "should not be a key: " |