()
| 12 | ) |
| 13 | |
| 14 | func main() { |
| 15 | // 选择要测试的云平台 |
| 16 | platform := os.Getenv("CLOUD_PLATFORM") // "aliyun" or "volcengine" |
| 17 | if platform == "" { |
| 18 | platform = "aliyun" |
| 19 | } |
| 20 | |
| 21 | ctx := context.Background() |
| 22 | |
| 23 | switch platform { |
| 24 | case "aliyun": |
| 25 | testAliyun(ctx) |
| 26 | case "volcengine": |
| 27 | testVolcengine(ctx) |
| 28 | default: |
| 29 | log.Fatalf("Unknown platform: %s", platform) |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | func testAliyun(ctx context.Context) { |
| 34 | fmt.Println("=== Testing Aliyun AgentBay Sandbox ===") |
nothing calls this directly
no test coverage detected