docs(test): 更新电表箱装配业务回归测试文档
- 将文档从代码审计任务转换为端到端业务回归测试链路 - 重新组织文档结构为链路总览、示例数据基线和详细步骤 - 添加完整的业务场景清单涵盖WMS/MES/工位终端三大系统 - 定义统一的测试数据包括产品型号、物料清单、工位派工等 - 提供详细的步骤断言和数量等式验证方法 - 建立贯穿全链路的数据流向和状态变更追踪体系
This commit is contained in:
@@ -80,6 +80,18 @@ func (f DailyPlanFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, e
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.DailyPlanMutation", m)
|
||||
}
|
||||
|
||||
// The DockFunc type is an adapter to allow the use of ordinary
|
||||
// function as Dock mutator.
|
||||
type DockFunc func(context.Context, *ent.DockMutation) (ent.Value, error)
|
||||
|
||||
// Mutate calls f(ctx, m).
|
||||
func (f DockFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) {
|
||||
if mv, ok := m.(*ent.DockMutation); ok {
|
||||
return f(ctx, mv)
|
||||
}
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.DockMutation", m)
|
||||
}
|
||||
|
||||
// The EventLogFunc type is an adapter to allow the use of ordinary
|
||||
// function as EventLog mutator.
|
||||
type EventLogFunc func(context.Context, *ent.EventLogMutation) (ent.Value, error)
|
||||
|
||||
Reference in New Issue
Block a user