(B *testing.B)
| 72 | } |
| 73 | |
| 74 | func BenchmarkOneRouteSet(B *testing.B) { |
| 75 | router := New() |
| 76 | router.GET("/ping", func(c *Context) { |
| 77 | c.Set("key", "value") |
| 78 | }) |
| 79 | runRequest(B, router, http.MethodGet, "/ping") |
| 80 | } |
| 81 | |
| 82 | func BenchmarkOneRouteString(B *testing.B) { |
| 83 | router := New() |
nothing calls this directly
no test coverage detected