MCPcopy
hub / github.com/roboll/helmfile / Test_SetHelmBinary

Function Test_SetHelmBinary

pkg/helmexec/exec_test.go:71–80  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func Test_SetHelmBinary(t *testing.T) {
72 helm := MockExecer(NewLogger(os.Stdout, "info"), "dev")
73 if helm.helmBinary != "helm" {
74 t.Error("helmexec.command - default command is not helm")
75 }
76 helm.SetHelmBinary("foo")
77 if helm.helmBinary != "foo" {
78 t.Errorf("helmexec.SetHelmBinary() - actual = %s expect = foo", helm.helmBinary)
79 }
80}
81
82func Test_AddRepo_Helm_3_3_2(t *testing.T) {
83 var buffer bytes.Buffer

Callers

nothing calls this directly

Calls 4

NewLoggerFunction · 0.85
MockExecerFunction · 0.70
SetHelmBinaryMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected