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{})
| 616 | // |
| 617 | // Returns whether the assertion was successful (true) or not (false). |
| 618 | func (a *Assertions) HTTPRedirect(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) bool { |
| 619 | if h, ok := a.t.(tHelper); ok { |
| 620 | h.Helper() |
| 621 | } |
| 622 | return HTTPRedirect(a.t, handler, method, url, values, msgAndArgs...) |
| 623 | } |
| 624 | |
| 625 | // HTTPRedirectf asserts that a specified handler returns a redirect status code. |
| 626 | // |