tachibana22 commented on PR #1152:
URL: 
https://github.com/apache/incubator-seata-go/pull/1152#issuecomment-5479584843

   ### 改动文件详细说明 
   
   #### 1. Go 1.25 工具链与 Linter 适配 
   
   - **`pkg/remoting/grpc/channel_manager.go`**
     - 将反射判断中的弃用常量 `reflect.Ptr` 替换为 `reflect.Pointer`,消除 Go 1.25 下 `govet` 
提出的常量内联警告。
   - **`pkg/datasource/sql/conn_at_test.go`**
     - 将 `var primaryErr error = errors.New(name)` 简化为 `var primaryErr = 
errors.New(name)`,消除 `staticcheck` ST1023 规则针对右值已知类型的冗余声明拦截。
   - **`pkg/datasource/sql/datasource/datasource_manager.go`**
     - 针对 `GetResourceManager` 接口返回值的判空逻辑添加 `//nolint:staticcheck` 注解,抑制 
`staticcheck` SA4023 对历史存量接口类型的误报,避免对底层通用架构进行非必要侵入。
   - **`pkg/saga/statemachine/engine/config/default_statemachine_config.go` / 
`pkg/saga/statemachine/store/db/statelog.go`**
     - 在 SAGA 状态机获取 RM 实例的 `if mgr != nil` 判定上方添加 `//nolint:staticcheck` 
注解,统一规避 SA4023 存量告警。
   
   #### 2. Undo Log Builder 单测结构修正
   
   - **`pkg/datasource/sql/undo/builder/basic_undo_log_builder_test.go`**
     - 在 `TestBasicUndoLogBuilder_BuildSelectArgs_ComplexAST` 表驱动测试矩阵中,将原 
`Subquery and Exists` 调整为 `Parentheses and Unary` 用例(`SELECT * FROM t WHERE NOT 
(a = ?) AND (b = ?)`)。
     - 覆盖并验证 `traversalArgs` 中新增的 `UnaryOperationExpr` 与 `ParenthesesExpr` 
分支,确保 Undo Log 构建引擎单测通过,打通全仓单元测试与 Codecov 覆盖率收集流程。


-- 
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]

Reply via email to