test(mapping): 增加健康档案映射样本基线(T-205)
This commit is contained in:
@@ -140,3 +140,10 @@
|
||||
- 验证:按 TDD 先运行 `go test ./mapping -run "TestMapHealthRecord|TestGenerateCheckID" -count=1`,因 `MapHealthRecord`/`MapContext`/`GenerateCheckID` 未定义失败;实现后目标测试通过。最终 `go test ./mapping -count=1`、`go test ./...`、`go build ./...`、`git diff --check` 均通过。
|
||||
- 决策:创建请求结构体仍留到 T-206;T-202 只输出映射层草稿结构,先把纯函数、校验、字典注入和 checkId 稳定性打牢。
|
||||
- 下一步:T-205(映射单测基线:docx 样例 + 联调样本)。
|
||||
## 2026-07-07 T-205 映射单测基线
|
||||
|
||||
- 状态:DONE
|
||||
- 变更:新增 `mapping/health_record_baseline_test.go`;补 docx 风格完整样例、联调样本风格脱敏样例、脏数据样例三组映射回归测试,覆盖主数据字段映射、码表转换、必填校验、码表未命中和 checkId 稳定生成。
|
||||
- 验证:`go test ./mapping -count=1` 通过;`go test ./...` 通过。
|
||||
- 决策:样本全部脱敏,不提交本地真实身份证/姓名/电话;T-205 只建立映射测试基线,不扩展创建请求结构体。
|
||||
- 下一步:T-101(`osi/public.go` 四个字典查询)。
|
||||
|
||||
Reference in New Issue
Block a user