Skip to content

Commit

Permalink
Corrected test functions naming format and copyright year
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Georgievski <[email protected]>
  • Loading branch information
dgeorgievski committed Jun 5, 2024
1 parent f811b66 commit 22596a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sql/v2/runtime/test/tck/user_defined_functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ tests:
result: ""
- name: KONKAT (3)
expression: "KONKAT('a')"
result: "a"
result: "a"
8 changes: 4 additions & 4 deletions sql/v2/runtime/test/user_defined_functions_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2021 The CloudEvents Authors
Copyright 2024 The CloudEvents Authors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 22596a9

Please sign in to comment.