gofumpt lint and misc cleanup (#1682)
* gofumpt lint and misc cleanup * Reorder fileInfo dircounts code to be clearer
This commit is contained in:
1 parent
6cabb0e8e4
commit
a018257d50
10 files changed
+42
-45
No files matched your search
+1
-1
@@ -330,7 +330,7 @@ func TestGetFileExtension(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
if got := getFileExtension(fakeFileInfo{test.fileName, test.isDir}); got != test.expectedExtension {
|
||||
t.Errorf("at input %q expected %q but got %q", test.fileName, test.expectedExtension, got)
|
||||
t.Errorf("at input '%s' expected '%s' but got '%s'", test.fileName, test.expectedExtension, got)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user