(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func setupHelmDiffTest(t *testing.T) *helmDiffTestHelper { |
| 29 | t.Helper() |
| 30 | os.Setenv(env, envValue) |
| 31 | |
| 32 | h := &helmDiffTestHelper{ |
| 33 | oldArgs: os.Args, |
| 34 | } |
| 35 | h.helmBin, h.helmBinSet = os.LookupEnv("HELM_BIN") |
| 36 | os.Setenv("HELM_BIN", os.Args[0]) |
| 37 | |
| 38 | return h |
| 39 | } |
| 40 | |
| 41 | func (h *helmDiffTestHelper) cleanup() { |
| 42 | os.Unsetenv(env) |
no outgoing calls
no test coverage detected