MCPcopy Create free account
hub / github.com/efficientgo/e2e / getDockerPortMapping

Function getDockerPortMapping

env_docker.go:465–472  ·  view source on GitHub ↗
(out []byte)

Source from the content-addressed store, hash-verified

463}
464
465func getDockerPortMapping(out []byte) (int, error) {
466 trimmed := strings.TrimSpace(string(out))
467 matches := dockerPortPattern.FindStringSubmatch(trimmed)
468 if len(matches) != 2 {
469 return 0, errors.Newf("got unexpected output: %s", trimmed)
470 }
471 return strconv.Atoi(matches[1])
472}
473
474func (d *dockerRunnable) Stop() error {
475 if !d.IsRunning() {

Callers 2

StartMethod · 0.85
TestGetDockerPortMappingFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGetDockerPortMappingFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…