HTTPRedirectf asserts that a specified handler returns a redirect status code. assert.HTTPRedirectf(t, myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}} Returns whether the assertion was successful (true) or not (false).
(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})
| 315 | // |
| 316 | // Returns whether the assertion was successful (true) or not (false). |
| 317 | func HTTPRedirectf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { |
| 318 | if h, ok := t.(tHelper); ok { |
| 319 | h.Helper() |
| 320 | } |
| 321 | return HTTPRedirect(t, handler, method, url, values, append([]interface{}{msg}, args...)...) |
| 322 | } |
| 323 | |
| 324 | // HTTPStatusCodef asserts that a specified handler returns a specified status code. |
| 325 | // |
no test coverage detected