MCPcopy Create free account
hub / github.com/ddev/ddev / TestGetHomeDir

Function TestGetHomeDir

pkg/util/utils_test.go:378–387  ·  view source on GitHub ↗

TestGetHomeDir tests GetHomeDir

(t *testing.T)

Source from the content-addressed store, hash-verified

376
377// TestGetHomeDir tests GetHomeDir
378func TestGetHomeDir(t *testing.T) {
379 home := util.GetHomeDir()
380 if home == "" {
381 t.Fatal("returned home directory is empty")
382 }
383
384 if !filepath.IsAbs(home) {
385 t.Fatalf("returned path is not absolute: %s", home)
386 }
387}
388
389// TestFindBashPath tests FindBashPath
390func TestFindBashPath(t *testing.T) {

Callers

nothing calls this directly

Calls 1

GetHomeDirFunction · 0.92

Tested by

no test coverage detected