Added router benchmarks

This commit is contained in:
2024-03-12 20:35:19 +01:00
parent 070b374c6e
commit cb6106a26d
10 changed files with 129 additions and 11 deletions

View File

@ -121,7 +121,7 @@ func TestRouter(t *testing.T) {
func TestPanic(t *testing.T) {
s := server.New()
s.Get("/panic", func(ctx server.Context) error {
s.Router().Add(http.MethodGet, "/panic", func(ctx server.Context) error {
panic("Something unbelievable happened")
})