(b *testing.B, app *App, fctx *fasthttp.RequestCtx)
| 1482 | } |
| 1483 | |
| 1484 | func acquireDefaultCtxForRouterBenchmark(b *testing.B, app *App, fctx *fasthttp.RequestCtx) *DefaultCtx { |
| 1485 | b.Helper() |
| 1486 | |
| 1487 | ctx := app.AcquireCtx(fctx) |
| 1488 | defaultCtx, ok := ctx.(*DefaultCtx) |
| 1489 | if !ok { |
| 1490 | b.Fatal("AcquireCtx did not return *DefaultCtx") |
| 1491 | } |
| 1492 | return defaultCtx |
| 1493 | } |
| 1494 | |
| 1495 | // go test -v -run=^$ -bench=Benchmark_App_RebuildTree -benchmem -count=4 |
| 1496 | func Benchmark_App_RebuildTree(b *testing.B) { |
no test coverage detected