Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
1 | 33 | 2 | 0.955 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 1 | 19 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
2 | 1 | 23 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
3 | 1 | 43 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
4 | 1 | 47 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
5 | 1 | 70 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
6 | 1 | 92 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
7 | 1 | 95 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
8 | 1 | 101 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
9 | 1 | 111 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
10 | 1 | 117 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
11 | 1 | 128 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
12 | 1 | 134 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
13 | 1 | 149 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
14 | 1 | 154 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
15 | 1 | 179 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
16 | 1 | 183 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
17 | 1 | 211 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
18 | 1 | 216 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
19 | 1 | 239 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
20 | 1 | 244 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
21 | 1 | 284 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
22 | 1 | 287 | src/NHibernate.Test/HQL/SimpleFunctionsTest.cs |
23 | 1 | 19 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
24 | 1 | 23 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
25 | 1 | 27 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
26 | 1 | 31 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
27 | 3 | 45 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
28 | 1 | 54 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
29 | 1 | 71 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
30 | 1 | 82 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
31 | 1 | 88 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
32 | 1 | 96 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
33 | 1 | 104 | src/NHibernate.Test/HQL/SQLFunctionTemplateTest.cs |
| ||||
Assert.AreEqual("noArgs()", nf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("noArgs", nf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("fname()", sf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("fname(1, 2)", sf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual(expected, cf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("()", vf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("(va1)", vf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("(va1 || va2 || va3)", vf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("va1", nf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("nvl(va1, nvl(va2, va3))", nf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("position('a' in va2)", psf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("(position('a' in substring(va2, 2))+2-1)", psf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("sum(va1)", csf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("sum(distinct va2)", csf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("count(va1)", ccf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("count(*)", ccf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("avg(va1)", caf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("avg(distinct va2)", caf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("max(va1)", caf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("max(distinct va2)", caf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("substring(var1 from 3)", asf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("substring(var1 from 3 for 4)", asf.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("ltrim( 'abcd <' )", ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("ltrim( Az?ab )", ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("function( 'abcd <' )? 5:6", ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("???????'abcd <'?", ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual( "replace( replace( rtrim( replace( replace( 'param1 ', ' ', '${space}$' ), 'param2 ab ', ' ' ) ), ' ', 'param2 ab ' ), '${space}$', ' ' )", ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("1 3 2 3 1", ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual(expected, ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("func(,)", ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("func(1,)", ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("func(1,3)", ft.Render(args, factoryImpl).ToString()); |
| ||||
Assert.AreEqual("func(2, 1, 3)", ft.Render(args, factoryImpl).ToString()); |
| |||
Assert.AreEqual( [[#variable2cdd1160]], [[#variable2cdd1140]].Render(args, factoryImpl).ToString()); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2cdd1160]] | "ltrim( 'abcd <' )" |
1 | 2 | [[#2cdd1160]] | "ltrim( Az?ab )" |
1 | 3 | [[#2cdd1160]] | "function( 'abcd <' )? 5:6" |
1 | 4 | [[#2cdd1160]] | "???????'abcd <'?" |
1 | 5 | [[#2cdd1160]] | "replace( replace( rtrim( replace( replace( 'param1 ', ' ', '${space}$' ), 'param2 ab ', ' ' ) ), ' ', 'param2 ab ' ), '${space}$', ' ' )" |
1 | 6 | [[#2cdd1160]] | "1 3 2 3 1" |
1 | 7 | [[#2cdd1160]] | expected |
1 | 8 | [[#2cdd1160]] | "func(,)" |
1 | 9 | [[#2cdd1160]] | "func(1,)" |
1 | 10 | [[#2cdd1160]] | "func(1,3)" |
1 | 11 | [[#2cdd1160]] | "func(2, 1, 3)" |
1 | 12 | [[#2cdd1160]] | "noArgs()" |
1 | 13 | [[#2cdd1160]] | "noArgs" |
1 | 14 | [[#2cdd1160]] | "fname()" |
1 | 15 | [[#2cdd1160]] | "fname(1, 2)" |
1 | 16 | [[#2cdd1160]] | expected |
1 | 17 | [[#2cdd1160]] | "()" |
1 | 18 | [[#2cdd1160]] | "(va1)" |
1 | 19 | [[#2cdd1160]] | "(va1 || va2 || va3)" |
1 | 20 | [[#2cdd1160]] | "va1" |
1 | 21 | [[#2cdd1160]] | "nvl(va1, nvl(va2, va3))" |
1 | 22 | [[#2cdd1160]] | "position('a' in va2)" |
1 | 23 | [[#2cdd1160]] | "(position('a' in substring(va2, 2))+2-1)" |
1 | 24 | [[#2cdd1160]] | "sum(va1)" |
1 | 25 | [[#2cdd1160]] | "sum(distinct va2)" |
1 | 26 | [[#2cdd1160]] | "count(va1)" |
1 | 27 | [[#2cdd1160]] | "count(*)" |
1 | 28 | [[#2cdd1160]] | "avg(va1)" |
1 | 29 | [[#2cdd1160]] | "avg(distinct va2)" |
1 | 30 | [[#2cdd1160]] | "max(va1)" |
1 | 31 | [[#2cdd1160]] | "max(distinct va2)" |
1 | 32 | [[#2cdd1160]] | "substring(var1 from 3)" |
1 | 33 | [[#2cdd1160]] | "substring(var1 from 3 for 4)" |
2 | 1 | [[#2cdd1140]] | ft |
2 | 2 | [[#2cdd1140]] | ft |
2 | 3 | [[#2cdd1140]] | ft |
2 | 4 | [[#2cdd1140]] | ft |
2 | 5 | [[#2cdd1140]] | ft |
2 | 6 | [[#2cdd1140]] | ft |
2 | 7 | [[#2cdd1140]] | ft |
2 | 8 | [[#2cdd1140]] | ft |
2 | 9 | [[#2cdd1140]] | ft |
2 | 10 | [[#2cdd1140]] | ft |
2 | 11 | [[#2cdd1140]] | ft |
2 | 12 | [[#2cdd1140]] | nf |
2 | 13 | [[#2cdd1140]] | nf |
2 | 14 | [[#2cdd1140]] | sf |
2 | 15 | [[#2cdd1140]] | sf |
2 | 16 | [[#2cdd1140]] | cf |
2 | 17 | [[#2cdd1140]] | vf |
2 | 18 | [[#2cdd1140]] | vf |
2 | 19 | [[#2cdd1140]] | vf |
2 | 20 | [[#2cdd1140]] | nf |
2 | 21 | [[#2cdd1140]] | nf |
2 | 22 | [[#2cdd1140]] | psf |
2 | 23 | [[#2cdd1140]] | psf |
2 | 24 | [[#2cdd1140]] | csf |
2 | 25 | [[#2cdd1140]] | csf |
2 | 26 | [[#2cdd1140]] | ccf |
2 | 27 | [[#2cdd1140]] | ccf |
2 | 28 | [[#2cdd1140]] | caf |
2 | 29 | [[#2cdd1140]] | caf |
2 | 30 | [[#2cdd1140]] | caf |
2 | 31 | [[#2cdd1140]] | caf |
2 | 32 | [[#2cdd1140]] | asf |
2 | 33 | [[#2cdd1140]] | asf |