Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 3 | 4 | 0.958 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 22 | src/NHibernate.Test/HQL/Ast/BulkManipulation.cs |
2 | 7 | 31 | src/NHibernate.Test/HQL/Ast/BulkManipulation.cs |
3 | 6 | 58 | src/NHibernate.Test/NHSpecificTest/NH280/Fixture.cs |
| ||||
#region Non-exists [Test] public void DeleteNonExistentEntity() { using (ISession s = OpenSession()) { Assert.Throws<QuerySyntaxException> (() => s.CreateQuery("delete NonExistentEntity").ExecuteUpdate()); } } |
| ||||
[Test] public void UpdateNonExistentEntity() { using (ISession s = OpenSession()) { Assert.Throws<QuerySyntaxException> ( () => s.CreateQuery("update NonExistentEntity e set e.someProp = ?").ExecuteUpdate()); } } |
| ||||
[Test] public void TokenUnknow() { using (ISession s = OpenSession()) { Assert.Throws<QueryException> (() => s.CreateQuery("select 123, notRecognized, f.Description from Foo f").List()); } } |
| |||
#region Non-exists [Test] public void [[#variable55d0f780]]() { using (ISession s = OpenSession()) { Assert.Throws< [[#variable55d0f1a0]]> (() => s.CreateQuery( [[#variable55d0e4c0]]). [[#variable55d0f660]]()); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#55d0f780]] | TokenUnknow |
1 | 2 | [[#55d0f780]] | DeleteNonExistentEntity |
1 | 3 | [[#55d0f780]] | UpdateNonExistentEntity |
2 | 1 | [[#55d0f1a0]] | QueryException |
2 | 2 | [[#55d0f1a0]] | QuerySyntaxException |
2 | 3 | [[#55d0f1a0]] | QuerySyntaxException |
3 | 1 | [[#55d0e4c0]] | "select 123, notRecognized, f.Description from Foo f" |
3 | 2 | [[#55d0e4c0]] | "delete NonExistentEntity" |
3 | 3 | [[#55d0e4c0]] | "update NonExistentEntity e set e.someProp = ?" |
4 | 1 | [[#55d0f660]] | List |
4 | 2 | [[#55d0f660]] | ExecuteUpdate |
4 | 3 | [[#55d0f660]] | ExecuteUpdate |