diff options
author | Jakob Unterwurzacher | 2025-07-07 16:56:20 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2025-07-09 19:28:09 +0200 |
commit | 4cd56460fdf1cce857f9929ecd6cbdddaad65474 (patch) | |
tree | eb1466c46b548157fadc3600ffb7833fa1e1de52 | |
parent | b499c26526ff3a257310ed9fc2c04680d3ee4ab6 (diff) |
tests: reverse: add TestIssue927Minimal
-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) +} |