(t *testing.T)
| 159 | } |
| 160 | |
| 161 | func TestContextRenderErrorsOnNoRenderer(t *testing.T) { |
| 162 | e := New() |
| 163 | req := httptest.NewRequest(http.MethodPost, "/", strings.NewReader(userJSON)) |
| 164 | rec := httptest.NewRecorder() |
| 165 | |
| 166 | c := e.NewContext(req, rec) |
| 167 | |
| 168 | c.Echo().Renderer = nil |
| 169 | assert.Error(t, c.Render(http.StatusOK, "hello", "Jon Snow")) |
| 170 | } |
| 171 | |
| 172 | func TestContextStream(t *testing.T) { |
| 173 | e := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…