(t *testing.T)
| 166 | } |
| 167 | |
| 168 | func TestHTTPRequestWithParams(t *testing.T) { |
| 169 | var got *http.Request |
| 170 | handler := func(w http.ResponseWriter, r *http.Request) { |
| 171 | got = r |
| 172 | w.WriteHeader(http.StatusOK) |
| 173 | } |
| 174 | params := url.Values{} |
| 175 | params.Add("id", "12345") |
| 176 | |
| 177 | True(t, HTTPSuccess(t, handler, "GET", "/url", params)) |
| 178 | |
| 179 | Equal(t, url.Values{"id": []string{"12345"}}, got.URL.Query()) |
| 180 | Equal(t, "/url?id=12345", got.URL.String()) |
| 181 | Equal(t, "/url?id=12345", got.URL.RequestURI()) |
| 182 | } |
| 183 | |
| 184 | func TestHttpBody(t *testing.T) { |
| 185 | assert := New(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…