Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 0 | 1.000 | statement_list[10] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 25 | src/NHibernate.Test/SubclassFilterTest/DiscrimSubclassFilterTest.cs |
2 | 14 | 25 | src/NHibernate.Test/SubclassFilterTest/JoinedSubclassFilterTest.cs |
| ||||
s.EnableFilter("region").SetParameter("userRegion", "US"); ITransaction t = s.BeginTransaction(); PrepareTestData(s); s.Clear(); IList results; results = s.CreateQuery("from Person").List(); Assert.AreEqual(4, results.Count, "Incorrect qry result count"); s.Clear(); results = s.CreateQuery("from Employee").List(); Assert.AreEqual(2, results.Count, "Incorrect qry result count"); |
| ||||
s.EnableFilter("region").SetParameter("userRegion", "US"); ITransaction t = s.BeginTransaction(); PrepareTestData(s); s.Clear(); IList results; results = s.CreateQuery("from Person").List(); Assert.AreEqual(4, results.Count, "Incorrect qry result count"); s.Clear(); results = s.CreateQuery("from Employee").List(); Assert.AreEqual(2, results.Count, "Incorrect qry result count"); |
| |||
s.EnableFilter("region").SetParameter("userRegion", "US"); ITransaction t = s.BeginTransaction(); PrepareTestData(s); s.Clear(); IList results; results = s.CreateQuery("from Person").List(); Assert.AreEqual(4, results.Count, "Incorrect qry result count"); s.Clear(); results = s.CreateQuery("from Employee").List(); Assert.AreEqual(2, results.Count, "Incorrect qry result count"); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |