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

Function TestSchemaToMap_Nil

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

Source from the content-addressed store, hash-verified

8)
9
10func TestSchemaToMap_Nil(t *testing.T) {
11 t.Parallel()
12 m, err := SchemaToMap(nil)
13 require.NoError(t, err)
14
15 assert.Equal(t, map[string]any{
16 "type": "object",
17 "properties": map[string]any{},
18 }, m)
19}
20
21func TestSchemaToMap_MissingType(t *testing.T) {
22 t.Parallel()

Callers

nothing calls this directly

Calls 1

SchemaToMapFunction · 0.85

Tested by

no test coverage detected