MCPcopy
hub / github.com/helm/helm / TestLoadArchiveWithUTFBOM

Function TestLoadArchiveWithUTFBOM

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

Source from the content-addressed store, hash-verified

155}
156
157func TestLoadArchiveWithUTFBOM(t *testing.T) {
158 l, err := Loader("testdata/frobnitz_with_bom.tgz")
159 if err != nil {
160 t.Fatalf("Failed to load testdata: %s", err)
161 }
162 c, err := l.Load()
163 if err != nil {
164 t.Fatalf("Failed to load testdata: %s", err)
165 }
166 verifyFrobnitz(t, c)
167 verifyChart(t, c)
168 verifyDependencies(t, c)
169 verifyDependenciesLock(t, c)
170 verifyBomStripped(t, c.Files)
171}
172
173func TestLoadV1(t *testing.T) {
174 l, err := Loader("testdata/frobnitz.v1")

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…