summaryrefslogtreecommitdiff
path: root/internal/config/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/config_test.go')
-rw-r--r--internal/config/config_test.go24
1 files changed, 21 insertions, 3 deletions
diff --git a/internal/config/config_test.go b/internal/config/config_test.go
index 4167ff7..31863f8 100644
--- a/internal/config/config_test.go
+++ b/internal/config/config_test.go
@@ -74,11 +74,20 @@ func TestRunnersConfig_DefaultsAllEnabled(t *testing.T) {
if !r.GoogleEnabled() {
t.Error("google should be enabled by default (nil)")
}
+ if !r.GroqEnabled() {
+ t.Error("groq should be enabled by default (nil)")
+ }
+ if !r.OpenRouterEnabled() {
+ t.Error("openrouter should be enabled by default (nil)")
+ }
+ if !r.OpenAIEnabled() {
+ t.Error("openai should be enabled by default (nil)")
+ }
}
func TestRunnersConfig_ExplicitFalseDisables(t *testing.T) {
f := false
- r := RunnersConfig{Claude: &f, Gemini: &f, Local: &f, Container: &f, Anthropic: &f, Google: &f}
+ r := RunnersConfig{Claude: &f, Gemini: &f, Local: &f, Container: &f, Anthropic: &f, Google: &f, Groq: &f, OpenRouter: &f, OpenAI: &f}
if r.ClaudeEnabled() {
t.Error("explicit false should disable claude")
}
@@ -97,12 +106,21 @@ func TestRunnersConfig_ExplicitFalseDisables(t *testing.T) {
if r.GoogleEnabled() {
t.Error("explicit false should disable google")
}
+ if r.GroqEnabled() {
+ t.Error("explicit false should disable groq")
+ }
+ if r.OpenRouterEnabled() {
+ t.Error("explicit false should disable openrouter")
+ }
+ if r.OpenAIEnabled() {
+ t.Error("explicit false should disable openai")
+ }
}
func TestRunnersConfig_ExplicitTrueEnables(t *testing.T) {
tr := true
- r := RunnersConfig{Claude: &tr, Gemini: &tr, Local: &tr, Container: &tr, Anthropic: &tr, Google: &tr}
- if !r.ClaudeEnabled() || !r.GeminiEnabled() || !r.LocalEnabled() || !r.ContainerEnabled() || !r.AnthropicEnabled() || !r.GoogleEnabled() {
+ r := RunnersConfig{Claude: &tr, Gemini: &tr, Local: &tr, Container: &tr, Anthropic: &tr, Google: &tr, Groq: &tr, OpenRouter: &tr, OpenAI: &tr}
+ if !r.ClaudeEnabled() || !r.GeminiEnabled() || !r.LocalEnabled() || !r.ContainerEnabled() || !r.AnthropicEnabled() || !r.GoogleEnabled() || !r.GroqEnabled() || !r.OpenRouterEnabled() || !r.OpenAIEnabled() {
t.Error("explicit true should keep all runners enabled")
}
}