(t *testing.T)
| 163 | } |
| 164 | |
| 165 | func TestHTTPRequestWithNoParams(t *testing.T) { |
| 166 | t.Parallel() |
| 167 | |
| 168 | var got *http.Request |
| 169 | handler := func(w http.ResponseWriter, r *http.Request) { |
| 170 | got = r |
| 171 | w.WriteHeader(http.StatusOK) |
| 172 | } |
| 173 | |
| 174 | True(t, HTTPSuccess(t, handler, "GET", "/url", nil)) |
| 175 | |
| 176 | Empty(t, got.URL.Query()) |
| 177 | Equal(t, "/url", got.URL.RequestURI()) |
| 178 | } |
| 179 | |
| 180 | func TestHTTPRequestWithParams(t *testing.T) { |
| 181 | t.Parallel() |
nothing calls this directly
no test coverage detected