(b *testing.B)
| 42 | } |
| 43 | |
| 44 | func BenchmarkServeHTTP_Param(b *testing.B) { |
| 45 | e := New() |
| 46 | e.GET("/users/:id/books/:bid", func(c *Context) error { return c.NoContent(http.StatusOK) }) |
| 47 | req := httptest.NewRequest(http.MethodGet, "/users/42/books/7", nil) |
| 48 | benchServe(b, e, req) |
| 49 | } |
| 50 | |
| 51 | // Exercises the global middleware chain (finding #1). Five pass-through middlewares. |
| 52 | func BenchmarkServeHTTP_Middleware(b *testing.B) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…