Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 2 | 0.960 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 10 | src/NHibernate.Test/UtilityTest/LRUMapFixture.cs |
2 | 15 | 28 | src/NHibernate.Test/UtilityTest/LRUMapFixture.cs |
| ||||
[Test] public void PutWithSizeLimit() { int size = 10; IDictionary cache = new LRUMap(size); for (int i = 0; i < size; i++) { cache.Add("key:" + i, "data:" + i); } for (int i = 0; i < size; i++) { string data = (string)cache["key:" + i]; Assert.AreEqual("data:" + i, data, "Data is wrong."); } } |
| ||||
[Test] public void PutWithNoSizeLimit() { int size = 10; IDictionary cache = new LRUMap(); for (int i = 0; i < size; i++) { cache.Add("key:" + i, "data:" + i); } for (int i = 0; i < size; i++) { string data = (string)cache["key:" + i]; Assert.AreEqual("data:" + i, data, "Data is wrong."); } } |
| |||
[Test] public void [[#variable5e6af440]]() { int size = 10; IDictionary cache = [[#variable5e6af380]]; for (int i = 0; i < size; i++) { cache.Add("key:" + i, "data:" + i); } for (int i = 0; i < size; i++) { string data = (string)cache["key:" + i]; Assert.AreEqual("data:" + i, data, "Data is wrong."); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5e6af440]] | PutWithSizeLimit |
1 | 2 | [[#5e6af440]] | PutWithNoSizeLimit |
2 | 1 | [[#5e6af380]] | new LRUMap(size) |
2 | 2 | [[#5e6af380]] | new LRUMap() |