test(projectinstance): unify gate access and preview for duty modes
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -101,6 +101,16 @@ func testResolver() *stubVersionResolver {
|
||||
}
|
||||
}
|
||||
|
||||
// OptionalDutyResolver 导出含可裁剪 research 文档的测试定义。
|
||||
func OptionalDutyResolver() VersionResolver {
|
||||
return optionalDutyResolver()
|
||||
}
|
||||
|
||||
// OptionalDutyPlan 导出一份 full + none 测试规划。
|
||||
func OptionalDutyPlan(intake, research DocDuty) WorkflowPlan {
|
||||
return optionalDutyPlan(intake, research)
|
||||
}
|
||||
|
||||
func optionalDutyResolver() *stubVersionResolver {
|
||||
r := testResolver()
|
||||
r.versions[workflowdef.OfficialKeyMain].Definition.Stages[0].DocTasks = []workflowdef.DocTaskDef{
|
||||
|
||||
Reference in New Issue
Block a user