Skip to content

Commit

Permalink
go 1.22, PathValue wildcard test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Feb 17, 2024
1 parent fd0ff0e commit ec67a86
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions path_value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ func TestPathValue(t *testing.T) {
requestPath: "/users/Gojo/conversations/2948",
expectedBody: "Gojo 2948",
},
{
name: "Wildcard path",
pattern: "/users/{userID}/friends/*",
method: "POST",
pathKeys: []string{"userID", "*"},
requestPath: "/users/Gojo/friends/all-of-them/and/more",
expectedBody: "Gojo all-of-them/and/more",
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit ec67a86

Please sign in to comment.