(t *testing.T)
| 109 | } |
| 110 | |
| 111 | func TestMultiProviderFactory_Create_Ollama(t *testing.T) { |
| 112 | factory := NewMultiProviderFactory() |
| 113 | |
| 114 | config := &types.ModelConfig{ |
| 115 | Provider: "ollama", |
| 116 | Model: "llama2", |
| 117 | BaseURL: "http://localhost:11434", |
| 118 | } |
| 119 | |
| 120 | provider, err := factory.Create(config) |
| 121 | if err != nil { |
| 122 | t.Fatalf("Create failed: %v", err) |
| 123 | } |
| 124 | |
| 125 | if provider == nil { |
| 126 | t.Error("expected provider, got nil") |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | func TestMultiProviderFactory_Create_DefaultProvider(t *testing.T) { |
| 131 | factory := NewMultiProviderFactory() |
nothing calls this directly
no test coverage detected