Commit 921054a
committed
docs: 修复代码注释问题并完善测试说明
修复内容:
- 修复 internal/services/dynamic_weight.go 中 SubGroupWeightInput 结构体的注释
原注释错误地重复了 GetSubGroupDynamicWeights 函数的说明
现已改为正确描述该结构体的用途:持有子组ID和基础权重用于动态权重计算
- 完善 internal/sitemanagement/i18n/i18n_test.go 中的测试说明
为 TestNoEmptyTranslations 测试添加注释说明其与 TestTranslationValuesNotEmpty 的关系
明确指出这是防御性深度验证测试,遵循项目中其他 i18n 测试文件的模式
测试验证:
- 所有单元测试通过(并行度24)
- go vet 检查无警告
- 代码诊断无错误1 parent c546b56 commit 921054a
File tree
2 files changed
+3
-1
lines changed- internal
- services
- sitemanagement/i18n
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
| 462 | + | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
| |||
0 commit comments