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

Function TestMultiProviderFactory_Create_GLM

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

Source from the content-addressed store, hash-verified

71}
72
73func TestMultiProviderFactory_Create_GLM(t *testing.T) {
74 factory := NewMultiProviderFactory()
75
76 config := &types.ModelConfig{
77 Provider: "glm",
78 APIKey: "test-key",
79 Model: "glm-4",
80 }
81
82 provider, err := factory.Create(config)
83 if err != nil {
84 t.Fatalf("Create failed: %v", err)
85 }
86
87 if provider == nil {
88 t.Error("expected provider, got nil")
89 }
90}
91
92func TestMultiProviderFactory_Create_Groq(t *testing.T) {
93 factory := NewMultiProviderFactory()

Callers

nothing calls this directly

Calls 3

CreateMethod · 0.95
NewMultiProviderFactoryFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected