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

Function TestInvalidVersion

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

Source from the content-addressed store, hash-verified

413}
414
415func TestInvalidVersion(t *testing.T) {
416 _, err := loadYAML(`
417version: 3
418services:
419 foo:
420 image: busybox
421`)
422 assert.Check(t, is.ErrorContains(err, "version must be a string"))
423}
424
425func TestV1Unsupported(t *testing.T) {
426 _, 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…