From 3df1c624301bca215a300c2b9b9135c3966950f9 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 18 Aug 2021 11:04:56 +0200 Subject: tests/reverse/TestExcludeTestFs: test trailing slash --- tests/reverse/exclude_test.go | 2 ++ 1 file changed, 2 insertions(+) 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{ -- cgit v1.2.3