File tree 3 files changed +32
-0
lines changed
test/errorstest/auxiliary
3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 106
106
"Function" : " BadDep" ,
107
107
"OnExit" : " onExitBadDep" ,
108
108
"Path" : " github.com/alibaba/opentelemetry-go-auto-instrumentation/pkg/rules/test/error17"
109
+ },
110
+ {
111
+ "ImportPath" : " errorstest/auxiliary" ,
112
+ "Function" : " TargetWithFuncType" ,
113
+ "OnEnter" : " onEnterTargetWithFuncType" ,
114
+ "Path" : " github.com/alibaba/opentelemetry-go-auto-instrumentation/pkg/rules/test/error18"
109
115
}
110
116
]
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2025 Alibaba Group Holding Ltd.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ package error18
16
+
17
+ import (
18
+ "github.com/alibaba/opentelemetry-go-auto-instrumentation/pkg/api"
19
+ )
20
+
21
+ func onEnterTargetWithFuncType (call api.CallContext , _ interface {}) {
22
+ }
Original file line number Diff line number Diff line change @@ -43,3 +43,7 @@ func OnlyArgs(arg1 int, arg2 string) {
43
43
println (arg1 , arg2 )
44
44
}
45
45
func NilArg (arg1 * int ) {}
46
+
47
+ type Fn func ()
48
+
49
+ func TargetWithFuncType (fn ... Fn ) {}
You can’t perform that action at this time.
0 commit comments