(t *testing.T)
| 66 | } |
| 67 | |
| 68 | func TestLoadDirWithSymlink(t *testing.T) { |
| 69 | sym := filepath.Join("..", "LICENSE") |
| 70 | link := filepath.Join("testdata", "frobnitz_with_symlink", "LICENSE") |
| 71 | |
| 72 | if err := os.Symlink(sym, link); err != nil { |
| 73 | t.Fatal(err) |
| 74 | } |
| 75 | |
| 76 | defer os.Remove(link) |
| 77 | |
| 78 | l, err := Loader("testdata/frobnitz_with_symlink") |
| 79 | if err != nil { |
| 80 | t.Fatalf("Failed to load testdata: %s", err) |
| 81 | } |
| 82 | |
| 83 | c, err := l.Load() |
| 84 | if err != nil { |
| 85 | t.Fatalf("Failed to load testdata: %s", err) |
| 86 | } |
| 87 | verifyFrobnitz(t, c) |
| 88 | verifyChart(t, c) |
| 89 | verifyDependencies(t, c) |
| 90 | verifyDependenciesLock(t, c) |
| 91 | } |
| 92 | |
| 93 | func TestBomTestData(t *testing.T) { |
| 94 | testFiles := []string{"frobnitz_with_bom/.helmignore", "frobnitz_with_bom/templates/template.tpl", "frobnitz_with_bom/Chart.yaml"} |
nothing calls this directly
no test coverage detected
searching dependent graphs…