(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func TestToContext_Headers(t *testing.T) { |
| 56 | testConf := ContextConfig{ |
| 57 | Headers: http.Header{echo.HeaderXRequestID: []string{"ABC"}}, |
| 58 | } |
| 59 | c := testConf.ToContext(t) |
| 60 | |
| 61 | id := c.Request().Header.Get(echo.HeaderXRequestID) |
| 62 | |
| 63 | assert.Equal(t, "ABC", id) |
| 64 | } |
| 65 | |
| 66 | func TestToContext_PathValues(t *testing.T) { |
| 67 | testConf := ContextConfig{ |