From ec67a8683291f13a58d419ae8167971f4958d92b Mon Sep 17 00:00:00 2001 From: Peter Kieltyka Date: Fri, 16 Feb 2024 19:23:38 -0500 Subject: [PATCH] go 1.22, PathValue wildcard test --- path_value_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/path_value_test.go b/path_value_test.go index 389360ea..5a48698b 100644 --- a/path_value_test.go +++ b/path_value_test.go @@ -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 {