From 22596a9eadcf376e13bc90274c6ad007e88874e9 Mon Sep 17 00:00:00 2001 From: Dimitar Georgievski Date: Wed, 5 Jun 2024 15:05:17 +0000 Subject: [PATCH] Corrected test functions naming format and copyright year Signed-off-by: Dimitar Georgievski --- sql/v2/runtime/test/tck/user_defined_functions.yaml | 2 +- sql/v2/runtime/test/user_defined_functions_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sql/v2/runtime/test/tck/user_defined_functions.yaml b/sql/v2/runtime/test/tck/user_defined_functions.yaml index d07012f3f..c2a3a922e 100644 --- a/sql/v2/runtime/test/tck/user_defined_functions.yaml +++ b/sql/v2/runtime/test/tck/user_defined_functions.yaml @@ -24,4 +24,4 @@ tests: result: "" - name: KONKAT (3) expression: "KONKAT('a')" - result: "a" + result: "a" \ No newline at end of file diff --git a/sql/v2/runtime/test/user_defined_functions_test.go b/sql/v2/runtime/test/user_defined_functions_test.go index a9ddfb303..944ba98dd 100644 --- a/sql/v2/runtime/test/user_defined_functions_test.go +++ b/sql/v2/runtime/test/user_defined_functions_test.go @@ -1,5 +1,5 @@ /* - Copyright 2021 The CloudEvents Authors + Copyright 2024 The CloudEvents Authors SPDX-License-Identifier: Apache-2.0 */ @@ -112,7 +112,7 @@ func (tc TckTestCase) ExpectedResult() interface{} { return tc.Result } -func Test_functionTable_AddFunction(t *testing.T) { +func TestFunctionTableAddFunction(t *testing.T) { type args struct { functions []cesql.Function @@ -142,14 +142,14 @@ func Test_functionTable_AddFunction(t *testing.T) { t.Run(tt.name, func(t *testing.T) { for _, fn := range tt.args.functions { if err := ceruntime.AddFunction(fn); (err != nil) != tt.wantErr { - t.Errorf("functionTable.AddFunction() error = %v, wantErr %v", err, tt.wantErr) + t.Errorf("AddFunction() error = %v, wantErr %v", err, tt.wantErr) } } }) } } -func Test_UserFunctions(t *testing.T) { +func TestUserFunctions(t *testing.T) { tckFiles := make([]TckFile, 0, len(TCKFileNames)) _, basePath, _, _ := runtime.Caller(0)