(t *testing.T)
| 176 | } |
| 177 | |
| 178 | func TestBuildNativeCommand_EnvSet(t *testing.T) { |
| 179 | var displayCmd string |
| 180 | executor := NewExecutor("", "echo", "hello") |
| 181 | cmd := executor.buildNativeCommand(&displayCmd) |
| 182 | |
| 183 | if len(cmd.Env) == 0 { |
| 184 | t.Error("expected cmd.Env to be set from os.Environ()") |
| 185 | } |
| 186 | } |
nothing calls this directly
no test coverage detected