MCPcopy
hub / github.com/julienschmidt/httprouter / TestTreeCatchMaxParams

Function TestTreeCatchMaxParams

tree_test.go:349–354  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

347}
348
349func TestTreeCatchMaxParams(t *testing.T) {
350 tree := &node{}
351 var route = "/cmd/*filepath"
352 tree.addRoute(route, fakeHandler(route))
353 checkMaxParams(t, tree)
354}
355
356func TestTreeDoubleWildcard(t *testing.T) {
357 const panicMsg = "only one wildcard per path segment is allowed"

Callers

nothing calls this directly

Calls 3

addRouteMethod · 0.95
fakeHandlerFunction · 0.85
checkMaxParamsFunction · 0.85

Tested by

no test coverage detected