refactor(utils): 修复密码哈希比较逻辑错误 feat(user): 新增按状态筛选优惠券接口 docs: 添加虚拟发货与任务中心相关文档 fix(wechat): 修正Code2Session上下文传递问题 test: 补充订单折扣与积分转换测试用例 build: 更新配置文件与构建脚本 style: 清理多余的空行与注释
17 lines
414 B
Go
17 lines
414 B
Go
package user
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestRequestShippings_DedupAndSkip(t *testing.T) {
|
|
s := New(nil, nil)
|
|
// s.readDB/s.writeDB are nil in this placeholder; this test is a placeholder to ensure compilation.
|
|
_, _, _, _, err := s.RequestShippings(context.Background(), 1, []int64{0, 1, 1}, nil)
|
|
if err != nil {
|
|
// no real DB; just ensure function can be called
|
|
}
|
|
}
|
|
|