ToContext converts ContextConfig to echo.Context
(t *testing.T)
| 73 | |
| 74 | // ToContext converts ContextConfig to echo.Context |
| 75 | func (conf ContextConfig) ToContext(t *testing.T) *echo.Context { |
| 76 | c, _ := conf.ToContextRecorder(t) |
| 77 | return c |
| 78 | } |
| 79 | |
| 80 | // ToContextRecorder converts ContextConfig to echo.Context and httptest.ResponseRecorder |
| 81 | func (conf ContextConfig) ToContextRecorder(t *testing.T) (*echo.Context, *httptest.ResponseRecorder) { |