(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected