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

Function TestLoadV33

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

Source from the content-addressed store, hash-verified

280}
281
282func TestLoadV33(t *testing.T) {
283 actual, err := loadYAML(`
284version: "3.3"
285services:
286 foo:
287 image: busybox
288 credential_spec:
289 file: "/foo"
290 configs: [super]
291configs:
292 super:
293 external: true
294`)
295 assert.NilError(t, err)
296 assert.Assert(t, is.Len(actual.Services, 1))
297 assert.Check(t, is.Equal(actual.Services[0].CredentialSpec.File, "/foo"))
298 assert.Assert(t, is.Len(actual.Configs, 1))
299}
300
301func TestLoadV38(t *testing.T) {
302 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…