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

Function TestValidateInvalidVersion

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

Source from the content-addressed store, hash-verified

258}
259
260func TestValidateInvalidVersion(t *testing.T) {
261 config := dict{
262 "version": "2.1",
263 "services": dict{
264 "foo": dict{
265 "image": "busybox",
266 },
267 },
268 }
269
270 err := Validate(config, "2.1")
271 assert.ErrorContains(t, err, "unsupported Compose file version: 2.1")
272}
273
274type array []any
275

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…