HTTPRedirectf asserts that a specified handler returns a redirect status code. a.HTTPRedirectf(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, msg string, args ...interface{})
| 628 | // |
| 629 | // Returns whether the assertion was successful (true) or not (false). |
| 630 | func (a *Assertions) HTTPRedirectf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { |
| 631 | if h, ok := a.t.(tHelper); ok { |
| 632 | h.Helper() |
| 633 | } |
| 634 | return HTTPRedirectf(a.t, handler, method, url, values, msg, args...) |
| 635 | } |
| 636 | |
| 637 | // HTTPStatusCode asserts that a specified handler returns a specified status code. |
| 638 | // |
nothing calls this directly
no test coverage detected