MCPcopy Index your code
hub / github.com/labstack/echo / TestContext_QueryString

Function TestContext_QueryString

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

Source from the content-addressed store, hash-verified

1068}
1069
1070func TestContext_QueryString(t *testing.T) {
1071 e := New()
1072
1073 queryString := "query=string&var=val"
1074
1075 req := httptest.NewRequest(http.MethodGet, "/?"+queryString, nil)
1076 c := e.NewContext(req, nil)
1077
1078 assert.Equal(t, queryString, c.QueryString())
1079}
1080
1081func TestContext_Request(t *testing.T) {
1082 var c = new(Context)

Callers

nothing calls this directly

Calls 3

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