MCPcopy
hub / github.com/helm/helm / TestValidateChartYamlFormat

Function TestValidateChartYamlFormat

pkg/chart/v2/lint/rules/chartfile_test.go:57–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

55}
56
57func TestValidateChartYamlFormat(t *testing.T) {
58 err := validateChartYamlFormat(errors.New("Read error"))
59 if err == nil {
60 t.Error("validateChartYamlFormat to return a linter error, got no error")
61 }
62
63 err = validateChartYamlFormat(nil)
64 if err != nil {
65 t.Error("validateChartYamlFormat to return no error, got a linter error")
66 }
67}
68
69func TestValidateChartName(t *testing.T) {
70 err := validateChartName(badChart)

Callers

nothing calls this directly

Calls 2

validateChartYamlFormatFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…