()
| 13 | ) |
| 14 | |
| 15 | func main() { |
| 16 | fmt.Println("=== Aster Workflow 完整功能测试 ===") |
| 17 | |
| 18 | ctx := context.Background() |
| 19 | |
| 20 | // ===== 测试 1: 基础 Workflow ===== |
| 21 | fmt.Println("📝 测试 1: 基础 Workflow") |
| 22 | testBasicWorkflow(ctx) |
| 23 | |
| 24 | // ===== 测试 2: 所有步骤类型 ===== |
| 25 | fmt.Println("\n📝 测试 2: 所有步骤类型") |
| 26 | testAllStepTypes(ctx) |
| 27 | |
| 28 | // ===== 测试 3: Router 路由 ===== |
| 29 | fmt.Println("\n📝 测试 3: Router 路由") |
| 30 | testRouter(ctx) |
| 31 | |
| 32 | // ===== 测试 4: WorkflowAgent ===== |
| 33 | fmt.Println("\n📝 测试 4: WorkflowAgent") |
| 34 | testWorkflowAgent(ctx) |
| 35 | |
| 36 | fmt.Println("\n🎉 所有测试完成!") |
| 37 | } |
| 38 | |
| 39 | // 测试 1: 基础 Workflow |
| 40 | func testBasicWorkflow(ctx context.Context) { |
nothing calls this directly
no test coverage detected