(b *testing.B)
| 2085 | } |
| 2086 | |
| 2087 | func Benchmark_App_RebuildTree_Parallel(b *testing.B) { |
| 2088 | b.ReportAllocs() |
| 2089 | b.ResetTimer() |
| 2090 | b.RunParallel(func(pb *testing.PB) { |
| 2091 | // Each worker gets its own App instance to avoid data races on shared state |
| 2092 | localApp := New() |
| 2093 | registerDummyRoutes(localApp) |
| 2094 | for pb.Next() { |
| 2095 | localApp.hasRoutesRefreshed = true |
| 2096 | localApp.RebuildTree() |
| 2097 | } |
| 2098 | }) |
| 2099 | } |
| 2100 | |
| 2101 | func Benchmark_App_MethodNotAllowed_Parallel(b *testing.B) { |
| 2102 | app := New() |
nothing calls this directly
no test coverage detected