Skip to content

Commit

Permalink
add more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Mar 9, 2024
1 parent 56e8b61 commit 496e760
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/sync/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,9 @@ func TestMatchObjects(t *testing.T) {
{rules: []rule{{pattern: "a**b"}}, key: "b/c/d/b/", want: true},
{rules: []rule{{pattern: "a?**"}}, key: "a/a", want: true},
{rules: []rule{{pattern: "**a"}}, key: "a"},
{rules: []rule{{pattern: "a**"}}, key: "a"},
{rules: []rule{{pattern: "a**a"}}, key: "a", want: true},
{rules: []rule{{pattern: "aa**a"}}, key: "aa", want: true},
}
for _, c := range tests {
if got := matchKey(c.rules, c.key); got != c.want {
Expand Down

0 comments on commit 496e760

Please sign in to comment.