HTTPErrorf asserts that a specified handler returns an error status code. a.HTTPErrorf(myHandler, "POST", "/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{})
| 604 | // |
| 605 | // Returns whether the assertion was successful (true) or not (false). |
| 606 | func (a *Assertions) HTTPErrorf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { |
| 607 | if h, ok := a.t.(tHelper); ok { |
| 608 | h.Helper() |
| 609 | } |
| 610 | return HTTPErrorf(a.t, handler, method, url, values, msg, args...) |
| 611 | } |
| 612 | |
| 613 | // HTTPRedirect asserts that a specified handler returns a redirect status code. |
| 614 | // |
nothing calls this directly
no test coverage detected