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

Function TestContext_Request

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

Source from the content-addressed store, hash-verified

1079}
1080
1081func TestContext_Request(t *testing.T) {
1082 var c = new(Context)
1083
1084 assert.Nil(t, c.Request())
1085
1086 req := httptest.NewRequest(http.MethodGet, "/path", nil)
1087 c.SetRequest(req)
1088
1089 assert.Equal(t, req, c.Request())
1090}
1091
1092func TestContext_Scheme(t *testing.T) {
1093 var testCases = []struct {

Callers

nothing calls this directly

Calls 2

RequestMethod · 0.80
SetRequestMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…