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

Function TestSupportedVersion

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

Source from the content-addressed store, hash-verified

377}
378
379func TestSupportedVersion(t *testing.T) {
380 _, err := loadYAML(`
381version: "3"
382services:
383 foo:
384 image: busybox
385`)
386 assert.Check(t, err)
387
388 _, err = loadYAML(`
389version: "3.0"
390services:
391 foo:
392 image: busybox
393`)
394 assert.Check(t, err)
395}
396
397func TestUnsupportedVersion(t *testing.T) {
398 _, 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…