MCPcopy Create free account
hub / github.com/docker/cli / TestValidateAllowsXTopLevelFields

Function TestValidateAllowsXTopLevelFields

cli/compose/schema/schema_test.go:152–160  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

150}
151
152func TestValidateAllowsXTopLevelFields(t *testing.T) {
153 config := dict{
154 "version": "3.4",
155 "x-extra-stuff": dict{},
156 }
157
158 err := Validate(config, "3.4")
159 assert.NilError(t, err)
160}
161
162func TestValidateAllowsXFields(t *testing.T) {
163 config := dict{

Callers

nothing calls this directly

Calls 1

ValidateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…