HTTPRedirect asserts that a specified handler returns a redirect status code. a.HTTPRedirect(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}} Returns whether the assertion was successful (true) or not (false).
(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})
| 602 | // |
| 603 | // Returns whether the assertion was successful (true) or not (false). |
| 604 | func (a *Assertions) HTTPRedirect(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) bool { |
| 605 | if h, ok := a.t.(tHelper); ok { |
| 606 | h.Helper() |
| 607 | } |
| 608 | return HTTPRedirect(a.t, handler, method, url, values, msgAndArgs...) |
| 609 | } |
| 610 | |
| 611 | // HTTPRedirectf asserts that a specified handler returns a redirect status code. |
| 612 | // |