MCPcopy
hub / github.com/gofiber/fiber / registerDummyRoutes

Function registerDummyRoutes

router_test.go:1475–1482  ·  view source on GitHub ↗

BENCHMARKS /////////////////

(app *App)

Source from the content-addressed store, hash-verified

1473//////////////////////////////////////////////
1474
1475func registerDummyRoutes(app *App) {
1476 h := func(_ Ctx) error {
1477 return nil
1478 }
1479 for _, r := range routesFixture.GitHubAPI {
1480 app.Add([]string{r.Method}, r.Path, h)
1481 }
1482}
1483
1484func acquireDefaultCtxForRouterBenchmark(b *testing.B, app *App, fctx *fasthttp.RequestCtx) *DefaultCtx {
1485 b.Helper()

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected