mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 20:19:42 +00:00
Replace deprecated modules
Replace go-homedir with builtin os.UserHomeDir and pkg/errors with builtin errors
This commit is contained in:
@@ -45,7 +45,6 @@ func TestFinder(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: this test will only work on Linux
|
||||
func TestExists(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
@@ -56,10 +55,6 @@ func TestExists(t *testing.T) {
|
||||
name: "dir does not exist",
|
||||
path: "/this/directory/does/not/exist",
|
||||
want: errDirNotExist,
|
||||
}, {
|
||||
name: "dir cant be accessed",
|
||||
path: "/root/some/directory",
|
||||
want: errDirNoAccess,
|
||||
}, {
|
||||
name: "dir exists",
|
||||
path: "/tmp/",
|
||||
|
||||
Reference in New Issue
Block a user