Skip to content

Commit

Permalink
feat: improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerwill90 committed Oct 24, 2024
1 parent 32c5ba2 commit f659939
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,18 @@ func TestParseRoute(t *testing.T) {
wantErr: ErrInvalidRoute,
wantN: 0,
},
{
name: "empty infix catch all",
path: "/foo/bar/*{}/baz",
wantErr: ErrInvalidRoute,
wantN: 0,
},
{
name: "empty ending catch all",
path: "/foo/bar/baz/*{}",
wantErr: ErrInvalidRoute,
wantN: 0,
},
{
name: "unexpected character in param",
path: "/foo/{{bar}",
Expand Down

0 comments on commit f659939

Please sign in to comment.