(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func 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 | |
| 55 | func TestToContext_Headers(t *testing.T) { |
| 56 | testConf := ContextConfig{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…