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

Function TestLoad

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

Source from the content-addressed store, hash-verified

238}
239
240func TestLoad(t *testing.T) {
241 actual, err := Load(buildConfigDetails(sampleDict, nil))
242 assert.NilError(t, err)
243 assert.Check(t, is.Equal(sampleConfig.Version, actual.Version))
244 assert.Check(t, is.DeepEqual(serviceSort(sampleConfig.Services), serviceSort(actual.Services)))
245 assert.Check(t, is.DeepEqual(sampleConfig.Networks, actual.Networks))
246 assert.Check(t, is.DeepEqual(sampleConfig.Volumes, actual.Volumes))
247}
248
249func TestLoadExtras(t *testing.T) {
250 actual, err := loadYAML(`

Callers

nothing calls this directly

Calls 3

buildConfigDetailsFunction · 0.85
serviceSortFunction · 0.85
LoadFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…