MCPcopy
hub / github.com/helm/helm / TestList

Function TestList

pkg/action/dependency_test.go:32–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30)
31
32func TestList(t *testing.T) {
33 for _, tcase := range []struct {
34 chart string
35 golden string
36 }{
37 {
38 chart: "testdata/charts/chart-with-compressed-dependencies",
39 golden: "output/list-compressed-deps.txt",
40 },
41 {
42 chart: "testdata/charts/chart-with-compressed-dependencies-2.1.8.tgz",
43 golden: "output/list-compressed-deps-tgz.txt",
44 },
45 {
46 chart: "testdata/charts/chart-with-uncompressed-dependencies",
47 golden: "output/list-uncompressed-deps.txt",
48 },
49 {
50 chart: "testdata/charts/chart-with-uncompressed-dependencies-2.1.8.tgz",
51 golden: "output/list-uncompressed-deps-tgz.txt",
52 },
53 {
54 chart: "testdata/charts/chart-missing-deps",
55 golden: "output/list-missing-deps.txt",
56 },
57 } {
58 buf := bytes.Buffer{}
59 if err := NewDependency().List(tcase.chart, &buf); err != nil {
60 t.Fatal(err)
61 }
62 test.AssertGoldenString(t, buf.String(), tcase.golden)
63 }
64}
65
66// TestDependencyStatus_Dashes is a regression test to make sure that dashes in
67// chart names do not cause resolution problems.

Callers

nothing calls this directly

Calls 5

AssertGoldenStringFunction · 0.92
NewDependencyFunction · 0.85
FatalMethod · 0.80
ListMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…