6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-07 04:20:37 +00:00

Add a path to error messages when directory can't be accessed

This commit is contained in:
Grzegorz Dlugoszewski
2020-07-27 13:23:49 +02:00
parent 8904cd1bb3
commit d660a73c7f
4 changed files with 43 additions and 22 deletions

View File

@@ -6,14 +6,6 @@ import (
"testing"
)
func TestOpen(t *testing.T) {
_, err := Open("/paththatdoesnotexist/repo")
if err != errDirectoryAccess {
t.Errorf("Opening a repo in non existing path should throw an error")
}
}
func TestUncommitted(t *testing.T) {
tests := []struct {
name string