MCPcopy Create free account
hub / github.com/cozystack/talm / TestContract_Render_ChartLoadError

Function TestContract_Render_ChartLoadError

pkg/engine/contract_render_test.go:107–117  ·  view source on GitHub ↗

Contract: Render with Options.Root pointing at a non-existent directory surfaces a chart-load error from the Helm loader.

(t *testing.T)

Source from the content-addressed store, hash-verified

105// Contract: Render with Options.Root pointing at a non-existent
106// directory surfaces a chart-load error from the Helm loader.
107func TestContract_Render_ChartLoadError(t *testing.T) {
108 bogus := filepath.Join(t.TempDir(), "no-such-chart")
109 _, err := Render(context.Background(), nil, Options{
110 Offline: true,
111 Root: bogus,
112 TemplateFiles: []string{"templates/config.yaml"},
113 })
114 if err == nil {
115 t.Fatal("expected error for missing chart root")
116 }
117}
118
119// Contract: Render with a values file that does not exist surfaces a
120// loadValues error naming the missing file. Confirms loadValues'

Callers

nothing calls this directly

Calls 1

RenderFunction · 0.70

Tested by

no test coverage detected