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

Function TestUnsupportedVersion

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

Source from the content-addressed store, hash-verified

395}
396
397func TestUnsupportedVersion(t *testing.T) {
398 _, err := loadYAML(`
399version: "2"
400services:
401 foo:
402 image: busybox
403`)
404 assert.Check(t, is.ErrorContains(err, "version"))
405
406 _, err = loadYAML(`
407version: "2.0"
408services:
409 foo:
410 image: busybox
411`)
412 assert.Check(t, is.ErrorContains(err, "version"))
413}
414
415func TestInvalidVersion(t *testing.T) {
416 _, 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…