From 58cdfa25fb242a726f32a925a1f744c3e76ce7df Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Wed, 12 Apr 2023 13:36:20 +0100 Subject: [PATCH] Add test case. --- file_util_test.go | 1 + 1 file changed, 1 insertion(+) 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), ""},