(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestToContext_PathValues(t *testing.T) { |
| 67 | testConf := ContextConfig{ |
| 68 | PathValues: echo.PathValues{{ |
| 69 | Name: "key", |
| 70 | Value: "value", |
| 71 | }}, |
| 72 | } |
| 73 | c := testConf.ToContext(t) |
| 74 | |
| 75 | key := c.Param("key") |
| 76 | |
| 77 | assert.Equal(t, "value", key) |
| 78 | } |
| 79 | |
| 80 | func TestToContext_RouteInfo(t *testing.T) { |
| 81 | testConf := ContextConfig{ |