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

Function TestNewID

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

Source from the content-addressed store, hash-verified

8)
9
10func TestNewID(t *testing.T) {
11 t.Parallel()
12
13 id := NewID("openai", "gpt-4o")
14 assert.Equal(t, "openai", id.Provider)
15 assert.Equal(t, "gpt-4o", id.Model)
16 assert.Equal(t, "openai/gpt-4o", id.String())
17 assert.True(t, id.IsValid())
18 assert.False(t, id.IsZero())
19}
20
21func TestParseID(t *testing.T) {
22 t.Parallel()

Callers

nothing calls this directly

Calls 4

StringMethod · 0.95
IsValidMethod · 0.95
IsZeroMethod · 0.95
NewIDFunction · 0.85

Tested by

no test coverage detected