CloneSet448


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15220.960class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11510
src/NHibernate.Test/UtilityTest/LRUMapFixture.cs
21528
src/NHibernate.Test/UtilityTest/LRUMapFixture.cs
Clone Instance
1
Line Count
15
Source Line
10
Source File
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.");
                        }
                }



Clone Instance
2
Line Count
15
Source Line
28
Source File
src/NHibernate.Test/UtilityTest/LRUMapFixture.cs

                [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.");
                        }
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e6af440]]
PutWithSizeLimit 
12[[#5e6af440]]
PutWithNoSizeLimit 
21[[#5e6af380]]
new LRUMap(size) 
22[[#5e6af380]]
new LRUMap()