diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/reverse/exclude_test.go | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/reverse/exclude_test.go b/tests/reverse/exclude_test.go index ad6ade6..da05233 100644 --- a/tests/reverse/exclude_test.go +++ b/tests/reverse/exclude_test.go @@ -282,10 +282,27 @@ func TestIssue927(t *testing.T) { } tree.hiddenFiles = []string{ "fff", - ".config/conky/fff", + ".config/conky/xxx", ".config/geany/colorschemes/fff", ".config/mpv/fff", ".config/mpv/scripts/sub.lua", } doTestExcludeTestFs(t, "-exclude-wildcard", patterns, tree) } + +func TestIssue927Minimal(t *testing.T) { + patterns := strings.Split(`dir/* +!dir/`, "\n") + var tree directoryTree + // visible are plaintext paths that should be visible in the encrypted view + tree.visibleDirs = []string{ + "dir", + } + tree.visibleFiles = []string{} + // hidden are plaintext paths that should be hidden in the encrypted view + tree.hiddenDirs = []string{} + tree.hiddenFiles = []string{ + "dir/zzz", + } + doTestExcludeTestFs(t, "-exclude-wildcard", patterns, tree) +} |