(B *testing.B)
| 32 | } |
| 33 | |
| 34 | func BenchmarkManyHandlers(B *testing.B) { |
| 35 | router := New() |
| 36 | router.Use(Recovery(), LoggerWithWriter(newMockWriter())) |
| 37 | router.Use(func(c *Context) {}) |
| 38 | router.Use(func(c *Context) {}) |
| 39 | router.GET("/ping", func(c *Context) {}) |
| 40 | runRequest(B, router, http.MethodGet, "/ping") |
| 41 | } |
| 42 | |
| 43 | func Benchmark5Params(B *testing.B) { |
| 44 | DefaultWriter = os.Stdout |
nothing calls this directly
no test coverage detected