MCPcopy
hub / github.com/labstack/echo / TestContextRenderErrorsOnNoRenderer

Function TestContextRenderErrorsOnNoRenderer

context_test.go:161–170  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

159}
160
161func 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
172func TestContextStream(t *testing.T) {
173 e := New()

Callers

nothing calls this directly

Calls 5

EchoMethod · 0.95
RenderMethod · 0.95
NewFunction · 0.85
NewContextMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…