MCPcopy
hub / github.com/docker/compose / TestServiceImageName

Function TestServiceImageName

pkg/compose/create_test.go:88–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestServiceImageName(t *testing.T) {
89 assert.Equal(t, api.GetImageNameOrDefault(composetypes.ServiceConfig{Image: "myImage"}, "myProject"), "myImage")
90 assert.Equal(t, api.GetImageNameOrDefault(composetypes.ServiceConfig{Name: "aService"}, "myProject"), "myProject-aService")
91}
92
93func TestPrepareNetworkLabels(t *testing.T) {
94 project := composetypes.Project{

Callers

nothing calls this directly

Calls 1

GetImageNameOrDefaultFunction · 0.92

Tested by

no test coverage detected