MCPcopy Index your code
hub / github.com/databus23/helm-diff / setupHelmDiffTest

Function setupHelmDiffTest

main_test.go:28–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func 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
41func (h *helmDiffTestHelper) cleanup() {
42 os.Unsetenv(env)

Calls

no outgoing calls

Tested by

no test coverage detected