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

Function TestToContext_QueryValues

echotest/context_test.go:43–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func TestToContext_QueryValues(t *testing.T) {
44 testConf := ContextConfig{
45 QueryValues: url.Values{"t": []string{"2006-01-02"}},
46 }
47 c := testConf.ToContext(t)
48
49 v, err := echo.QueryParam[string](c, "t")
50
51 assert.NoError(t, err)
52 assert.Equal(t, "2006-01-02", v)
53}
54
55func TestToContext_Headers(t *testing.T) {
56 testConf := ContextConfig{

Callers

nothing calls this directly

Calls 1

ToContextMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…