MCPcopy
hub / github.com/gin-gonic/gin / TestTreeCatchMaxParams

Function TestTreeCatchMaxParams

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

Source from the content-addressed store, hash-verified

531}
532
533func TestTreeCatchMaxParams(t *testing.T) {
534 tree := &node{}
535 route := "/cmd/*filepath"
536 tree.addRoute(route, fakeHandler(route))
537}
538
539func TestTreeDoubleWildcard(t *testing.T) {
540 const panicMsg = "only one wildcard per path segment is allowed"

Callers

nothing calls this directly

Calls 2

addRouteMethod · 0.95
fakeHandlerFunction · 0.85

Tested by

no test coverage detected