(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func TestExpandLocalPath(t *testing.T) { |
| 56 | home, err := os.UserHomeDir() |
| 57 | require.NoError(t, err) |
| 58 | |
| 59 | require.Equal(t, home, ExpandLocalPath("~")) |
| 60 | require.Equal(t, filepath.Join(home, "Downloads"), ExpandLocalPath("~/Downloads")) |
| 61 | require.Equal(t, filepath.Join(home, "Downloads"), ExpandLocalPath("$HOME/Downloads")) |
| 62 | require.Equal(t, "relative/path", ExpandLocalPath("relative/path")) |
| 63 | } |
nothing calls this directly
no test coverage detected