(b *testing.B)
| 62 | } |
| 63 | |
| 64 | func BenchmarkServeHTTP_String(b *testing.B) { |
| 65 | e := New() |
| 66 | e.GET("/", func(c *Context) error { return c.String(http.StatusOK, "Hello, World!") }) |
| 67 | req := httptest.NewRequest(http.MethodGet, "/", nil) |
| 68 | benchServe(b, e, req) |
| 69 | } |
| 70 | |
| 71 | func BenchmarkServeHTTP_JSON(b *testing.B) { |
| 72 | e := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…