(t *testing.T)
| 30 | ) |
| 31 | |
| 32 | func 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. |
nothing calls this directly
no test coverage detected
searching dependent graphs…