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

Function TestContextResponse

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

Source from the content-addressed store, hash-verified

113}
114
115func TestContextResponse(t *testing.T) {
116 e := New()
117 req := httptest.NewRequest(http.MethodPost, "/", strings.NewReader(userJSON))
118 rec := httptest.NewRecorder()
119
120 c := e.NewContext(req, rec)
121
122 assert.NotNil(t, c.Response())
123}
124
125func TestContextRenderTemplate(t *testing.T) {
126 e := New()

Callers

nothing calls this directly

Calls 3

ResponseMethod · 0.95
NewFunction · 0.85
NewContextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…