(t *testing.T)
| 1068 | } |
| 1069 | |
| 1070 | func 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 | |
| 1081 | func TestContext_Request(t *testing.T) { |
| 1082 | var c = new(Context) |
nothing calls this directly
no test coverage detected
searching dependent graphs…