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

Function urlForService

pkg/e2e/pause_test.go:130–136  ·  view source on GitHub ↗
(t testing.TB, cli *CLI, service string, targetPort int)

Source from the content-addressed store, hash-verified

128}
129
130func urlForService(t testing.TB, cli *CLI, service string, targetPort int) string {
131 t.Helper()
132 return fmt.Sprintf(
133 "http://localhost:%d",
134 publishedPortForService(t, cli, service, targetPort),
135 )
136}
137
138func publishedPortForService(t testing.TB, cli *CLI, service string, targetPort int) int {
139 t.Helper()

Callers 2

TestPauseFunction · 0.85

Calls 1

publishedPortForServiceFunction · 0.85

Tested by

no test coverage detected