(t *testing.T)
| 2074 | } |
| 2075 | |
| 2076 | func Test_AddRoute_MergeHandlers(t *testing.T) { |
| 2077 | t.Parallel() |
| 2078 | app := New() |
| 2079 | count := func(_ Ctx) error { return nil } |
| 2080 | app.Get("/merge", count) |
| 2081 | app.Get("/merge", count) |
| 2082 | |
| 2083 | require.Len(t, app.stack[app.methodInt(MethodGet)], 1) |
| 2084 | require.Len(t, app.stack[app.methodInt(MethodGet)][0].Handlers, 2) |
| 2085 | } |
| 2086 | |
| 2087 | func Benchmark_App_RebuildTree_Parallel(b *testing.B) { |
| 2088 | b.ReportAllocs() |