MCPcopy
hub / github.com/helm/helm / TestDependencies

Function TestDependencies

pkg/chart/v2/lint/rules/dependencies_test.go:140–157  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

138}
139
140func TestDependencies(t *testing.T) {
141 tmp := t.TempDir()
142
143 c := chartWithBadDependencies()
144 err := chartutil.SaveDir(&c, tmp)
145 if err != nil {
146 t.Fatal(err)
147 }
148 linter := support.Linter{ChartDir: filepath.Join(tmp, c.Metadata.Name)}
149
150 Dependencies(&linter)
151 if l := len(linter.Messages); l != 2 {
152 t.Errorf("expected 2 linter errors for bad chart dependencies. Got %d.", l)
153 for i, msg := range linter.Messages {
154 t.Logf("Message: %d, Error: %#v", i, msg)
155 }
156 }
157}

Callers

nothing calls this directly

Calls 3

FatalMethod · 0.80
chartWithBadDependenciesFunction · 0.70
DependenciesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…