summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-18 11:04:56 +0200
committerJakob Unterwurzacher2021-08-18 11:04:56 +0200
commit3df1c624301bca215a300c2b9b9135c3966950f9 (patch)
tree034e8c4032e69c4bd94ad7c9b1db1b5fe3799419
parent884398eec3a950ea5667aa8ddf63297b6a26b3da (diff)
tests/reverse/TestExcludeTestFs: test trailing slash
-rw-r--r--tests/reverse/exclude_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/reverse/exclude_test.go b/tests/reverse/exclude_test.go
index 8587c22..88530ab 100644
--- a/tests/reverse/exclude_test.go
+++ b/tests/reverse/exclude_test.go
@@ -33,6 +33,7 @@ func doTestExcludeTestFs(t *testing.T, flag string) {
"/longfile3" + x240, // a leading / anchors the match at the root
"*~", // wildcards are supported
"dir1/**/exclude", // ** matches any number of directories
+ "file3/", // pattern with trailing slash should not match a file
}
// pVisible are plaintext paths that should be visible in the encrypted view
pVisible := []string{
@@ -43,6 +44,7 @@ func doTestExcludeTestFs(t *testing.T, flag string) {
"longdir1" + x240 + "/file1",
"longdir2" + x240 + "/file",
"longfile1" + x240,
+ "file3",
}
// pHidden are plaintext paths that should be hidden in the encrypted view
pHidden := []string{