(t *testing.T)
| 652 | } |
| 653 | |
| 654 | func TestEngineHandleContext(t *testing.T) { |
| 655 | r := New() |
| 656 | r.GET("/", func(c *Context) { |
| 657 | c.Request.URL.Path = "/v2" |
| 658 | r.HandleContext(c) |
| 659 | }) |
| 660 | v2 := r.Group("/v2") |
| 661 | { |
| 662 | v2.GET("/", func(c *Context) {}) |
| 663 | } |
| 664 | |
| 665 | assert.NotPanics(t, func() { |
| 666 | w := PerformRequest(r, http.MethodGet, "/") |
| 667 | assert.Equal(t, 301, w.Code) |
| 668 | }) |
| 669 | } |
| 670 | |
| 671 | func TestEngineHandleContextManyReEntries(t *testing.T) { |
| 672 | expectValue := 10000 |
nothing calls this directly
no test coverage detected