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

Function getEnv

pkg/e2e/providers_test.go:158–169  ·  view source on GitHub ↗
(out string)

Source from the content-addressed store, hash-verified

156}
157
158func getEnv(out string) []string {
159 var env []string
160 scanner := bufio.NewScanner(strings.NewReader(out))
161 for scanner.Scan() {
162 line := scanner.Text()
163 if strings.HasPrefix(line, "test-1 | ") {
164 env = append(env, line[10:])
165 }
166 }
167 slices.Sort(env)
168 return env
169}

Calls

no outgoing calls

Tested by

no test coverage detected