MCPcopy
hub / github.com/google/ax / TestNewControllerFromConfig_UnknownPlanner

Function TestNewControllerFromConfig_UnknownPlanner

internal/cliutil/cliutil_test.go:24–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22)
23
24func TestNewControllerFromConfig_UnknownPlanner(t *testing.T) {
25 cfg := &config.Config{
26 Planner: config.PlannerConfig{
27 Type: "unknown",
28 },
29 }
30
31 _, err := NewControllerFromConfig(context.Background(), cfg)
32 if err == nil {
33 t.Fatal("expected error for unknown planner type, got nil")
34 }
35}

Callers

nothing calls this directly

Calls 1

NewControllerFromConfigFunction · 0.85

Tested by

no test coverage detected