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

Function TestV1Unsupported

cli/compose/loader/loader_test.go:425–439  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

423}
424
425func TestV1Unsupported(t *testing.T) {
426 _, err := loadYAML(`
427foo:
428 image: busybox
429`)
430 assert.Check(t, is.ErrorContains(err, "(root) Additional property foo is not allowed"))
431
432 _, err = loadYAML(`
433version: "1.0"
434foo:
435 image: busybox
436`)
437
438 assert.Check(t, is.ErrorContains(err, "unsupported Compose file version: 1.0"))
439}
440
441func TestNonMappingObject(t *testing.T) {
442 _, err := loadYAML(`

Callers

nothing calls this directly

Calls 1

loadYAMLFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…