TestGetHomeDir tests GetHomeDir
(t *testing.T)
| 376 | |
| 377 | // TestGetHomeDir tests GetHomeDir |
| 378 | func 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 |
| 390 | func TestFindBashPath(t *testing.T) { |
nothing calls this directly
no test coverage detected