Matt Holt
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
modules/caddyhttp/fileserver/staticfiles_test.go
|
|
@ -161,6 +161,12 @@ func TestFileHidden(t *testing.T) { |
|
|
|
expect: false, |
|
|
|
}, |
|
|
|
} { |
|
|
|
// for Windows' sake
|
|
|
|
tc.inputPath = filepath.FromSlash(tc.inputPath) |
|
|
|
for i := range tc.inputHide { |
|
|
|
tc.inputHide[i] = filepath.FromSlash(tc.inputHide[i]) |
|
|
|
} |
|
|
|
|
|
|
|
actual := fileHidden(tc.inputPath, tc.inputHide) |
|
|
|
if actual != tc.expect { |
|
|
|
t.Errorf("Test %d: Is %s hidden in %v? Got %t but expected %t", |
|
|
|