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

Function TestParseAndLoad

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

Source from the content-addressed store, hash-verified

313}
314
315func TestParseAndLoad(t *testing.T) {
316 actual, err := loadYAML(sampleYAML)
317 assert.NilError(t, err)
318 assert.Check(t, is.DeepEqual(serviceSort(sampleConfig.Services), serviceSort(actual.Services)))
319 assert.Check(t, is.DeepEqual(sampleConfig.Networks, actual.Networks))
320 assert.Check(t, is.DeepEqual(sampleConfig.Volumes, actual.Volumes))
321}
322
323func TestInvalidTopLevelObjectType(t *testing.T) {
324 _, err := loadYAML("1")

Callers

nothing calls this directly

Calls 2

loadYAMLFunction · 0.85
serviceSortFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…