Added router benchmarks
This commit is contained in:
parent
ea969d3aa2
commit
b1e678bce7
10 changed files with 129 additions and 11 deletions
|
@ -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")
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue