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

Function TestResolveModelRef_NilConfig

pkg/runtime/model_switcher_test.go:886–894  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

884}
885
886func TestResolveModelRef_NilConfig(t *testing.T) {
887 t.Parallel()
888
889 r := &LocalRuntime{}
890
891 _, err := r.resolveModelRef(t.Context(), "openai/gpt-4o")
892 require.Error(t, err)
893 assert.Contains(t, err.Error(), "not configured")
894}
895
896func TestResolveModelRef_InvalidFormat(t *testing.T) {
897 t.Parallel()

Callers

nothing calls this directly

Calls 3

resolveModelRefMethod · 0.95
ContextMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected