HTTPSuccessf asserts that a specified handler returns a success status code. a.HTTPSuccessf(myHandler, "POST", "http://www.google.com", nil, "error message %s", "formatted") Returns whether the assertion was successful (true) or not (false).
(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})
| 662 | // |
| 663 | // Returns whether the assertion was successful (true) or not (false). |
| 664 | func (a *Assertions) HTTPSuccessf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { |
| 665 | if h, ok := a.t.(tHelper); ok { |
| 666 | h.Helper() |
| 667 | } |
| 668 | return HTTPSuccessf(a.t, handler, method, url, values, msg, args...) |
| 669 | } |
| 670 | |
| 671 | // Implements asserts that an object is implemented by the specified interface. |
| 672 | // |
nothing calls this directly
no test coverage detected