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

Function TestLocalCmdHelmTemplateError

cmd/local_test.go:244–257  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

242}
243
244func TestLocalCmdHelmTemplateError(t *testing.T) {
245 setupFakeHelm(t, "error", "", "", "")
246
247 chart1 := t.TempDir()
248 chart2 := t.TempDir()
249
250 cmd := localCmd()
251 cmd.SetArgs([]string{chart1, chart2})
252
253 err := cmd.Execute()
254 if err == nil {
255 t.Fatal("Expected error when helm template fails but got nil")
256 }
257}
258
259func TestPrepareStdinValues(t *testing.T) {
260 l := &local{

Callers

nothing calls this directly

Calls 2

setupFakeHelmFunction · 0.85
localCmdFunction · 0.85

Tested by

no test coverage detected