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{})
| 650 | // |
| 651 | // Returns whether the assertion was successful (true) or not (false). |
| 652 | func (a *Assertions) HTTPSuccess(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) bool { |
| 653 | if h, ok := a.t.(tHelper); ok { |
| 654 | h.Helper() |
| 655 | } |
| 656 | return HTTPSuccess(a.t, handler, method, url, values, msgAndArgs...) |
| 657 | } |
| 658 | |
| 659 | // HTTPSuccessf asserts that a specified handler returns a success status code. |
| 660 | // |