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

Function TestLoadV31

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

Source from the content-addressed store, hash-verified

264}
265
266func TestLoadV31(t *testing.T) {
267 actual, err := loadYAML(`
268version: "3.1"
269services:
270 foo:
271 image: busybox
272 secrets: [super]
273secrets:
274 super:
275 external: true
276`)
277 assert.NilError(t, err)
278 assert.Check(t, is.Len(actual.Services, 1))
279 assert.Check(t, is.Len(actual.Secrets, 1))
280}
281
282func TestLoadV33(t *testing.T) {
283 actual, err := loadYAML(`

Callers

nothing calls this directly

Calls 2

loadYAMLFunction · 0.85
LenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…