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{})
| 590 | // |
| 591 | // Returns whether the assertion was successful (true) or not (false). |
| 592 | func (a *Assertions) HTTPErrorf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { |
| 593 | if h, ok := a.t.(tHelper); ok { |
| 594 | h.Helper() |
| 595 | } |
| 596 | return HTTPErrorf(a.t, handler, method, url, values, msg, args...) |
| 597 | } |
| 598 | |
| 599 | // HTTPRedirect asserts that a specified handler returns a redirect status code. |
| 600 | // |
nothing calls this directly
no test coverage detected