From 4cd56460fdf1cce857f9929ecd6cbdddaad65474 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 7 Jul 2025 16:56:20 +0200 Subject: tests: reverse: add TestIssue927Minimal --- tests/reverse/exclude_test.go | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tests/reverse/exclude_test.go') 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) +} -- cgit v1.2.3