(B *testing.B)
| 41 | } |
| 42 | |
| 43 | func Benchmark5Params(B *testing.B) { |
| 44 | DefaultWriter = os.Stdout |
| 45 | router := New() |
| 46 | router.Use(func(c *Context) {}) |
| 47 | router.GET("/param/:param1/:params2/:param3/:param4/:param5", func(c *Context) {}) |
| 48 | runRequest(B, router, http.MethodGet, "/param/path/to/parameter/john/12345") |
| 49 | } |
| 50 | |
| 51 | func BenchmarkOneRouteJSON(B *testing.B) { |
| 52 | router := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…