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{})
| 614 | // |
| 615 | // Returns whether the assertion was successful (true) or not (false). |
| 616 | func (a *Assertions) HTTPRedirectf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { |
| 617 | if h, ok := a.t.(tHelper); ok { |
| 618 | h.Helper() |
| 619 | } |
| 620 | return HTTPRedirectf(a.t, handler, method, url, values, msg, args...) |
| 621 | } |
| 622 | |
| 623 | // HTTPStatusCode asserts that a specified handler returns a specified status code. |
| 624 | // |
nothing calls this directly
no test coverage detected