Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 1 | 0.995 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 139 | src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs |
2 | 9 | 149 | src/NHibernate.Test/SecondLevelCacheTest/QueryCacheFixture.cs |
| ||||
using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { result = s.CreateQuery(queryString).SetCacheable(true).List(); Assert.That(result.Count, Is.EqualTo(1)); tx.Commit(); } Assert.That(qs.CacheHitCount, Is.EqualTo(0)); |
| ||||
using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { result = s.CreateQuery(queryString).SetCacheable(true).List(); Assert.That(result.Count, Is.EqualTo(1)); tx.Commit(); } Assert.That(qs.CacheHitCount, Is.EqualTo(1)); |
| |||
using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { result = s.CreateQuery(queryString).SetCacheable(true).List(); Assert.That(result.Count, Is.EqualTo(1)); tx.Commit(); } Assert.That(qs.CacheHitCount, Is.EqualTo( [[#variable652f35e0]])); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#652f35e0]] | 1 |
1 | 2 | [[#652f35e0]] | 0 |