AlexStocks commented on code in PR #3185:
URL: https://github.com/apache/dubbo-go/pull/3185#discussion_r2769199365
##########
client/client_test.go:
##########
@@ -91,6 +91,30 @@ func TestGenerateInvocation(t *testing.T) {
require.Equal(t, []any{"foo", 1, resp}, inv.ParameterRawValues())
}
+func TestGenerateInvocationWithContextAttachments(t *testing.T) {
+ resp := new(int)
Review Comment:
> 我看这个测试文件之前很多地方是这样初始化的,现在是统一保留还是全局优化掉
改成 var resp int 合适,用的时候如果需要指针形式则传入 &resp
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]