Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHelmuth committed Jun 9, 2023
1 parent e3b0ab2 commit 92c20fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/ottl/expression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ func Test_StandardStringGetter(t *testing.T) {
}
}

// nolint:errorlint
func Test_StandardStringGetter_WrappedError(t *testing.T) {
getter := StandardStringGetter[interface{}]{
Getter: func(ctx context.Context, tCtx interface{}) (interface{}, error) {
Expand Down Expand Up @@ -822,6 +823,7 @@ func Test_StandardStringLikeGetter(t *testing.T) {
}
}

// nolint:errorlint
func Test_StandardStringLikeGetter_WrappedError(t *testing.T) {
getter := StandardStringLikeGetter[interface{}]{
Getter: func(ctx context.Context, tCtx interface{}) (interface{}, error) {
Expand Down Expand Up @@ -898,6 +900,7 @@ func Test_StandardFloatGetter(t *testing.T) {
}
}

// nolint:errorlint
func Test_StandardFloatGetter_WrappedError(t *testing.T) {
getter := StandardFloatGetter[interface{}]{
Getter: func(ctx context.Context, tCtx interface{}) (interface{}, error) {
Expand Down Expand Up @@ -1074,6 +1077,7 @@ func Test_StandardFloatLikeGetter(t *testing.T) {
}
}

// nolint:errorlint
func Test_StandardFloatLikeGetter_WrappedError(t *testing.T) {
getter := StandardFloatLikeGetter[interface{}]{
Getter: func(ctx context.Context, tCtx interface{}) (interface{}, error) {
Expand Down Expand Up @@ -1150,6 +1154,7 @@ func Test_StandardIntGetter(t *testing.T) {
}
}

// nolint:errorlint
func Test_StandardIntGetter_WrappedError(t *testing.T) {
getter := StandardIntGetter[interface{}]{
Getter: func(ctx context.Context, tCtx interface{}) (interface{}, error) {
Expand Down Expand Up @@ -1326,6 +1331,7 @@ func Test_StandardIntLikeGetter(t *testing.T) {
}
}

// nolint:errorlint
func Test_StandardIntLikeGetter_WrappedError(t *testing.T) {
getter := StandardIntLikeGetter[interface{}]{
Getter: func(ctx context.Context, tCtx interface{}) (interface{}, error) {
Expand Down Expand Up @@ -1412,6 +1418,7 @@ func Test_StandardPMapGetter(t *testing.T) {
}
}

// nolint:errorlint
func Test_StandardPMapGetter_WrappedError(t *testing.T) {
getter := StandardPMapGetter[interface{}]{
Getter: func(ctx context.Context, tCtx interface{}) (interface{}, error) {
Expand Down
1 change: 1 addition & 0 deletions pkg/ottl/ottlfuncs/func_is_map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func Test_IsMap(t *testing.T) {
}
}

// nolint:errorlint
func Test_IsMap_Error(t *testing.T) {
exprFunc := isMap[any](&ottl.StandardPMapGetter[any]{
Getter: func(context.Context, interface{}) (interface{}, error) {
Expand Down
1 change: 1 addition & 0 deletions pkg/ottl/ottlfuncs/func_is_string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func Test_IsString(t *testing.T) {
}
}

// nolint:errorlint
func Test_IsString_Error(t *testing.T) {
exprFunc := isString[any](&ottl.StandardStringGetter[any]{
Getter: func(context.Context, interface{}) (interface{}, error) {
Expand Down

0 comments on commit 92c20fe

Please sign in to comment.