HTTPSuccess asserts that a specified handler returns a success status code. a.HTTPSuccess(myHandler, "POST", "http://www.google.com", nil) Returns whether the assertion was successful (true) or not (false).
(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})
| 664 | // |
| 665 | // Returns whether the assertion was successful (true) or not (false). |
| 666 | func (a *Assertions) HTTPSuccess(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) bool { |
| 667 | if h, ok := a.t.(tHelper); ok { |
| 668 | h.Helper() |
| 669 | } |
| 670 | return HTTPSuccess(a.t, handler, method, url, values, msgAndArgs...) |
| 671 | } |
| 672 | |
| 673 | // HTTPSuccessf asserts that a specified handler returns a success status code. |
| 674 | // |