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

Function TestIDIsValid

pkg/modelsdev/id_test.go:78–93  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func TestIDIsValid(t *testing.T) {
79 t.Parallel()
80
81 tests := []struct {
82 id ID
83 want bool
84 }{
85 {ID{Provider: "openai", Model: "gpt-4o"}, true},
86 {ID{Provider: "openai"}, false},
87 {ID{Model: "gpt-4o"}, false},
88 {ID{}, false},
89 }
90 for _, tt := range tests {
91 assert.Equal(t, tt.want, tt.id.IsValid(), "id=%+v", tt.id)
92 }
93}

Callers

nothing calls this directly

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected