MCPcopy Create free account
hub / github.com/astercloud/aster / main

Function main

examples/workflow_complete/main.go:15–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func 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
40func testBasicWorkflow(ctx context.Context) {

Callers

nothing calls this directly

Calls 4

testBasicWorkflowFunction · 0.85
testAllStepTypesFunction · 0.85
testRouterFunction · 0.85
testWorkflowAgentFunction · 0.85

Tested by

no test coverage detected