(B *testing.B)
| 80 | } |
| 81 | |
| 82 | func BenchmarkOneRouteString(B *testing.B) { |
| 83 | router := New() |
| 84 | router.GET("/text", func(c *Context) { |
| 85 | c.String(http.StatusOK, "this is a plain text") |
| 86 | }) |
| 87 | runRequest(B, router, http.MethodGet, "/text") |
| 88 | } |
| 89 | |
| 90 | func BenchmarkManyRoutesFirst(B *testing.B) { |
| 91 | router := New() |
nothing calls this directly
no test coverage detected