Skip to content

Commit

Permalink
Adding test case to show change in docs is warranted
Browse files Browse the repository at this point in the history
  • Loading branch information
betmix-matt committed Dec 14, 2021
1 parent 521a07b commit 4ee8f1b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions runtime/mux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,27 @@ func TestMuxServeHTTP(t *testing.T) {
respStatus: http.StatusNotFound,
unescapingMode: runtime.UnescapingModeAllCharacters,
},
{
patterns: []stubPattern{
{
method: "GET",
ops: []int{
int(utilities.OpLitPush), 0,
int(utilities.OpPush), 0,
int(utilities.OpConcatN), 1,
int(utilities.OpCapture), 1,
int(utilities.OpLitPush), 2},
pool: []string{"foo", "id", "bar"},
},
},
reqMethod: "GET",
reqPath: "/foo/success%2fwith%2Fspace/bar",
headers: map[string]string{
"Content-Type": "application/json",
},
respStatus: http.StatusNotFound,
unescapingMode: runtime.UnescapingModeLegacy,
},
{
patterns: []stubPattern{
{
Expand Down

0 comments on commit 4ee8f1b

Please sign in to comment.