(t *testing.T)
| 78 | } |
| 79 | |
| 80 | func TestToContext_RouteInfo(t *testing.T) { |
| 81 | testConf := ContextConfig{ |
| 82 | RouteInfo: &echo.RouteInfo{ |
| 83 | Name: "my_route", |
| 84 | Method: http.MethodGet, |
| 85 | Path: "/:id", |
| 86 | Parameters: []string{"id"}, |
| 87 | }, |
| 88 | } |
| 89 | c := testConf.ToContext(t) |
| 90 | |
| 91 | ri := c.RouteInfo() |
| 92 | |
| 93 | assert.Equal(t, echo.RouteInfo{ |
| 94 | Name: "my_route", |
| 95 | Method: http.MethodGet, |
| 96 | Path: "/:id", |
| 97 | Parameters: []string{"id"}, |
| 98 | }, ri) |
| 99 | } |
| 100 | |
| 101 | func TestToContext_FormValues(t *testing.T) { |
| 102 | testConf := ContextConfig{ |