MCPcopy
hub / github.com/helm/helm / TestLoadDirWithSymlink

Function TestLoadDirWithSymlink

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

Source from the content-addressed store, hash-verified

66}
67
68func 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
93func TestBomTestData(t *testing.T) {
94 testFiles := []string{"frobnitz_with_bom/.helmignore", "frobnitz_with_bom/templates/template.tpl", "frobnitz_with_bom/Chart.yaml"}

Callers

nothing calls this directly

Calls 9

FatalMethod · 0.80
FatalfMethod · 0.80
LoaderFunction · 0.70
verifyFrobnitzFunction · 0.70
verifyChartFunction · 0.70
verifyDependenciesFunction · 0.70
verifyDependenciesLockFunction · 0.70
LoadMethod · 0.65
RemoveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…