MCPcopy Index your code
hub / github.com/docker/docker-agent / testProviderRegistry

Function testProviderRegistry

pkg/runtime/model_switcher_test.go:49–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func testProviderRegistry() *provider.Registry {
50 factory := func(_ context.Context, cfg *latest.ModelConfig, _ environment.Provider, _ ...options.Opt) (provider.Provider, error) {
51 return newConfigProvider(*cfg), nil
52 }
53 return provider.NewRegistry(map[string]provider.Factory{
54 "openai": factory,
55 "openai_chatcompletions": factory,
56 "openai_responses": factory,
57 "anthropic": factory,
58 "google": factory,
59 "amazon-bedrock": factory,
60 })
61}
62
63func TestCurrentThinkingLevel(t *testing.T) {
64 t.Parallel()

Calls 2

NewRegistryFunction · 0.92
newConfigProviderFunction · 0.85

Tested by

no test coverage detected