MCPcopy
hub / github.com/helm/helm / TestLoadDirWithDevNull

Function TestLoadDirWithDevNull

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

Source from the content-addressed store, hash-verified

52}
53
54func TestLoadDirWithDevNull(t *testing.T) {
55 if runtime.GOOS == "windows" {
56 t.Skip("test only works on unix systems with /dev/null present")
57 }
58
59 l, err := Loader("testdata/frobnitz_with_dev_null")
60 if err != nil {
61 t.Fatalf("Failed to load testdata: %s", err)
62 }
63 if _, err := l.Load(); err == nil {
64 t.Error("packages with an irregular file (/dev/null) should not load")
65 }
66}
67
68func TestLoadDirWithSymlink(t *testing.T) {
69 sym := filepath.Join("..", "LICENSE")

Callers

nothing calls this directly

Calls 4

FatalfMethod · 0.80
LoaderFunction · 0.70
LoadMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…