MCPcopy Index your code
hub / github.com/labstack/echo / TestRouterParamOrdering

Function TestRouterParamOrdering

router_test.go:2381–2400  ·  view source on GitHub ↗

Issue #1052

(t *testing.T)

Source from the content-addressed store, hash-verified

2379
2380// Issue #1052
2381func 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
2403func TestRouterMixedParams(t *testing.T) {

Callers

nothing calls this directly

Calls 1

testRouterAPIFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…