1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright (C) 2021-2024 Simon Ruderich
9 "ruderich.org/simon/safcm/testutil"
12 func TestTriggerPaths(t *testing.T) {
28 []string{"/", "/foo", "/foo/bar", "/foo/bar/baz"},
38 "relative path (for tests)",
40 []string{".", "foo", "foo/bar", "foo/bar/baz"},
44 for _, tc := range tests {
45 t.Run(tc.name, func(t *testing.T) {
46 res := triggerPaths(tc.path)
47 testutil.AssertEqual(t, "res", res, tc.exp)