MCPcopy Create free account
hub / github.com/docker/compose / TestRunOptionsEnvironmentMap

Function TestRunOptionsEnvironmentMap

pkg/api/api_test.go:26–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24)
25
26func TestRunOptionsEnvironmentMap(t *testing.T) {
27 opts := RunOptions{
28 Environment: []string{
29 "FOO=BAR",
30 "ZOT=",
31 "QIX",
32 },
33 }
34 env := types.NewMappingWithEquals(opts.Environment)
35 assert.Equal(t, *env["FOO"], "BAR")
36 assert.Equal(t, *env["ZOT"], "")
37 assert.Check(t, env["QIX"] == nil)
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected