MCPcopy
hub / github.com/helm/helm / TestLoadFile

Function TestLoadFile

pkg/chart/v2/loader/load_test.go:199–211  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

197}
198
199func TestLoadFile(t *testing.T) {
200 l, err := Loader("testdata/frobnitz-1.2.3.tgz")
201 if err != nil {
202 t.Fatalf("Failed to load testdata: %s", err)
203 }
204 c, err := l.Load()
205 if err != nil {
206 t.Fatalf("Failed to load testdata: %s", err)
207 }
208 verifyFrobnitz(t, c)
209 verifyChart(t, c)
210 verifyDependencies(t, c)
211}
212
213func TestLoadFiles_BadCases(t *testing.T) {
214 for _, tt := range []struct {

Callers

nothing calls this directly

Calls 6

FatalfMethod · 0.80
LoaderFunction · 0.70
verifyFrobnitzFunction · 0.70
verifyChartFunction · 0.70
verifyDependenciesFunction · 0.70
LoadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…