Issue #1052
(t *testing.T)
| 2379 | |
| 2380 | // Issue #1052 |
| 2381 | func TestRouterParamOrdering(t *testing.T) { |
| 2382 | api := []testRoute{ |
| 2383 | {http.MethodGet, "/:a/:b/:c/:id", ""}, |
| 2384 | {http.MethodGet, "/:a/:id", ""}, |
| 2385 | {http.MethodGet, "/:a/:e/:id", ""}, |
| 2386 | } |
| 2387 | testRouterAPI(t, api) |
| 2388 | api2 := []testRoute{ |
| 2389 | {http.MethodGet, "/:a/:id", ""}, |
| 2390 | {http.MethodGet, "/:a/:e/:id", ""}, |
| 2391 | {http.MethodGet, "/:a/:b/:c/:id", ""}, |
| 2392 | } |
| 2393 | testRouterAPI(t, api2) |
| 2394 | api3 := []testRoute{ |
| 2395 | {http.MethodGet, "/:a/:b/:c/:id", ""}, |
| 2396 | {http.MethodGet, "/:a/:e/:id", ""}, |
| 2397 | {http.MethodGet, "/:a/:id", ""}, |
| 2398 | } |
| 2399 | testRouterAPI(t, api3) |
| 2400 | } |
| 2401 | |
| 2402 | // Issue #1139 |
| 2403 | func TestRouterMixedParams(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…