INNER CODE UNIT · Go

TestMain

databus23/helm-diff · main_test.go:14

func TestMain(m *testing.M) {
	if os.Getenv(env) == envValue {
		os.Exit(runFakeHelm())
	}

	os.Exit(m.Run())
}

type helmDiffTestHelper struct {
	oldArgs    []string
	helmBin    string
	helmBinSet bool
}

func setupHelmDiffTest(t *testing.T) *helmDiffTestHelper {
	t.Helper()
	os.Setenv(env, envValue)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…