Skip to content

Commit

Permalink
refactored all route matching tests to make them cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmittag committed Apr 22, 2023
1 parent aadf0d1 commit 32ebf82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func TestRouteMatchWithSlug(t *testing.T) {
{n: "match slug", r: "/so", t: "prefix", u: "/some/more?k", v: true},
{n: "match slug", r: "/so", t: "prefix", u: "/some/more?k=v", v: true},
{n: "match slug", r: "/so", t: "prefix", u: "/some/more?k=v&k2=v2", v: true},
{n: "match slug", r: "/so*", t: "prefix", u: "/some/more?k=v&k2=v2", v: true},
{n: "match slug", r: "/so/*", t: "prefix", u: "/some/more?k=v&k2=v2", v: true},
}

doRunRouteMatchingTests(t, tests)
Expand Down

0 comments on commit 32ebf82

Please sign in to comment.