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

Function TestMultiProviderFactory_Create_Groq

pkg/provider/factory_test.go:92–109  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func TestMultiProviderFactory_Create_Groq(t *testing.T) {
93 factory := NewMultiProviderFactory()
94
95 config := &types.ModelConfig{
96 Provider: "groq",
97 APIKey: "test-key",
98 Model: "mixtral-8x7b",
99 }
100
101 provider, err := factory.Create(config)
102 if err != nil {
103 t.Fatalf("Create failed: %v", err)
104 }
105
106 if provider == nil {
107 t.Error("expected provider, got nil")
108 }
109}
110
111func TestMultiProviderFactory_Create_Ollama(t *testing.T) {
112 factory := NewMultiProviderFactory()

Callers

nothing calls this directly

Calls 3

CreateMethod · 0.95
NewMultiProviderFactoryFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected