(t *testing.T)
| 22 | ) |
| 23 | |
| 24 | func 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 | } |
nothing calls this directly
no test coverage detected