Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.989 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 1800 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
2 | 10 | 1813 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
| ||||
[Test] public void LikeProjectionUsingRestrictionsTest() { using (ISession session = this.OpenSession()) { ICriteria criteria = session.CreateCriteria( typeof(Student), "c"); criteria.Add(Restrictions.Like(Projections.Constant("Name"), "John", MatchMode.Anywhere)); criteria.List(); } } |
| ||||
[Test] public void InsensitiveLikeProjectionUsingRestrictionsTest() { using (ISession session = this.OpenSession()) { ICriteria criteria = session.CreateCriteria( typeof(Student), "c"); criteria.Add(Restrictions.InsensitiveLike(Projections.Constant("Name"), "John", MatchMode.Anywhere)); criteria.List(); } } |
| |||
[Test] public void [[#variable70e3c940]]() { using (ISession session = this.OpenSession()) { ICriteria criteria = session.CreateCriteria( typeof(Student), "c"); criteria.Add(Restrictions. [[#variable70e3c8c0]](Projections.Constant("Name"), "John", MatchMode.Anywhere)); criteria.List(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#70e3c940]] | LikeProjectionUsingRestrictionsTest |
1 | 2 | [[#70e3c940]] | InsensitiveLikeProjectionUsingRestrictionsTest |
2 | 1 | [[#70e3c8c0]] | Like |
2 | 2 | [[#70e3c8c0]] | InsensitiveLike |