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

Function serviceSort

cli/compose/loader/loader_test.go:1212–1217  ·  view source on GitHub ↗
(services []types.ServiceConfig)

Source from the content-addressed store, hash-verified

1210}
1211
1212func serviceSort(services []types.ServiceConfig) []types.ServiceConfig {
1213 sort.Slice(services, func(i, j int) bool {
1214 return services[i].Name < services[j].Name
1215 })
1216 return services
1217}
1218
1219func TestLoadAttachableNetwork(t *testing.T) {
1220 config, err := loadYAML(`

Callers 2

TestLoadFunction · 0.85
TestParseAndLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…