diff --git a/file_util_test.go b/file_util_test.go index 30af134..8aaad79 100644 --- a/file_util_test.go +++ b/file_util_test.go @@ -21,6 +21,7 @@ func Test_splitDirAndName(t *testing.T) { {"a/", "a/", ""}, {"a", "", "a"}, {"/", "/", ""}, + {"", "", ""}, // we split differently if we know it's a directory {tempDir, tempDir, ""}, {filepath.Clean(tempDir), filepath.Clean(tempDir), ""},