(t *testing.T)
| 14 | } |
| 15 | |
| 16 | func TestMultiProviderFactory_Create_Anthropic(t *testing.T) { |
| 17 | factory := NewMultiProviderFactory() |
| 18 | |
| 19 | config := &types.ModelConfig{ |
| 20 | Provider: "anthropic", |
| 21 | APIKey: "test-key", |
| 22 | Model: "claude-3-opus", |
| 23 | } |
| 24 | |
| 25 | provider, err := factory.Create(config) |
| 26 | if err != nil { |
| 27 | t.Fatalf("Create failed: %v", err) |
| 28 | } |
| 29 | |
| 30 | if provider == nil { |
| 31 | t.Error("expected provider, got nil") |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestMultiProviderFactory_Create_OpenAI(t *testing.T) { |
| 36 | factory := NewMultiProviderFactory() |
nothing calls this directly
no test coverage detected