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

Function TestLoadV38

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

Source from the content-addressed store, hash-verified

299}
300
301func TestLoadV38(t *testing.T) {
302 actual, err := loadYAML(`
303version: "3.8"
304services:
305 foo:
306 image: busybox
307 credential_spec:
308 config: "0bt9dmxjvjiqermk6xrop3ekq"
309`)
310 assert.NilError(t, err)
311 assert.Assert(t, is.Len(actual.Services, 1))
312 assert.Check(t, is.Equal(actual.Services[0].CredentialSpec.Config, "0bt9dmxjvjiqermk6xrop3ekq"))
313}
314
315func TestParseAndLoad(t *testing.T) {
316 actual, err := loadYAML(sampleYAML)

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…