Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 3 | 0.977 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 75 | src/NHibernate.Test/SecondLevelCacheTest/SecondLevelCacheTest.cs |
2 | 5 | 88 | src/NHibernate.Test/SecondLevelCacheTest/SecondLevelCacheTest.cs |
| ||||
Item one = (Item)session.Load( typeof(Item), 1); IList results = session.CreateQuery("from Item item where item.Parent = :parent"). SetEntity("parent", one). SetCacheable(true).List(); Assert.AreEqual(4, results.Count); |
| ||||
Item two = (Item)session.Load( typeof(Item), 2); IList results = session.CreateQuery("from Item item where item.Parent = :parent"). SetEntity("parent", two). SetCacheable(true).List(); Assert.AreEqual(0, results.Count); |
| |||
Item [[#variable6873a0e0]]= (Item)session.Load( typeof(Item), [[#variable684ad080]]); IList results = session.CreateQuery("from Item item where item.Parent = :parent").SetEntity("parent", [[#variable6873a0e0]]).SetCacheable(true).List(); Assert.AreEqual( [[#variable684acf40]], results.Count); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6873a0e0]] | one |
1 | 2 | [[#6873a0e0]] | two |
2 | 1 | [[#684ad080]] | 1 |
2 | 2 | [[#684ad080]] | 2 |
3 | 1 | [[#684acf40]] | 4 |
3 | 2 | [[#684acf40]] | 0 |