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

Function TestContextEcho

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

Source from the content-addressed store, hash-verified

92}
93
94func TestContextEcho(t *testing.T) {
95 e := New()
96 req := httptest.NewRequest(http.MethodPost, "/", strings.NewReader(userJSON))
97 rec := httptest.NewRecorder()
98
99 c := e.NewContext(req, rec)
100
101 assert.Equal(t, e, c.Echo())
102}
103
104func TestContextRequest(t *testing.T) {
105 e := New()

Callers

nothing calls this directly

Calls 3

EchoMethod · 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…