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

Function TestContextNoContent

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

Source from the content-addressed store, hash-verified

493}
494
495func TestContextNoContent(t *testing.T) {
496 e := New()
497 rec := httptest.NewRecorder()
498 req := httptest.NewRequest(http.MethodGet, "/?pretty", nil)
499 c := e.NewContext(req, rec)
500
501 c.NoContent(http.StatusOK)
502 assert.Equal(t, http.StatusOK, rec.Code)
503}
504
505func TestContextCookie(t *testing.T) {
506 e := New()

Callers

nothing calls this directly

Calls 3

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