(t *testing.T)
| 165 | } |
| 166 | |
| 167 | func TestRouterRoot(t *testing.T) { |
| 168 | router := New() |
| 169 | recv := catchPanic(func() { |
| 170 | router.GET("noSlashRoot", nil) |
| 171 | }) |
| 172 | if recv == nil { |
| 173 | t.Fatal("registering path not beginning with '/' did not panic") |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | func TestRouterChaining(t *testing.T) { |
| 178 | router1 := New() |
nothing calls this directly
no test coverage detected