(b *testing.B)
| 325 | } |
| 326 | |
| 327 | func BenchmarkRouter_Search_Static(b *testing.B) { |
| 328 | r := newTestRouter() |
| 329 | for i := 0; i < 100; i++ { |
| 330 | insertRoute(r, "GET", fmt.Sprintf("/static/route/%d", i)) |
| 331 | } |
| 332 | b.ResetTimer() |
| 333 | b.ReportAllocs() |
| 334 | for i := 0; i < b.N; i++ { |
| 335 | r.Search("GET", "/static/route/50") |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | func BenchmarkRouter_Search_Param(b *testing.B) { |
| 340 | r := newTestRouter() |
nothing calls this directly
no test coverage detected