mirror of
https://github.com/octoleo/restic.git
synced 2024-11-04 20:37:49 +00:00
Add another filter test
This commit is contained in:
parent
9002eaa259
commit
6fe25548bd
@ -45,6 +45,8 @@ var matchTests = []struct {
|
|||||||
{"/foo/../bar", "/bar", true},
|
{"/foo/../bar", "/bar", true},
|
||||||
{"/foo", "/foo/baz", true},
|
{"/foo", "/foo/baz", true},
|
||||||
{"/foo/", "/foo/baz", true},
|
{"/foo/", "/foo/baz", true},
|
||||||
|
{"/foo/*", "/foo", false},
|
||||||
|
{"/foo/*", "/foo/baz", true},
|
||||||
{"bar", "/foo/bar/baz", true},
|
{"bar", "/foo/bar/baz", true},
|
||||||
{"bar", "/foo/bar/test.go", true},
|
{"bar", "/foo/bar/test.go", true},
|
||||||
{"/foo/*test.*", "/foo/bar/test.go", false},
|
{"/foo/*test.*", "/foo/bar/test.go", false},
|
||||||
|
Loading…
Reference in New Issue
Block a user