HTTPSuccessf asserts that a specified handler returns a success status code. assert.HTTPSuccessf(t, myHandler, "POST", "http://www.google.com", nil, "error message %s", "formatted") Returns whether the assertion was successful (true) or not (false).
(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})
| 829 | // |
| 830 | // Returns whether the assertion was successful (true) or not (false). |
| 831 | func HTTPSuccessf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) { |
| 832 | if h, ok := t.(tHelper); ok { |
| 833 | h.Helper() |
| 834 | } |
| 835 | if assert.HTTPSuccessf(t, handler, method, url, values, msg, args...) { |
| 836 | return |
| 837 | } |
| 838 | t.FailNow() |
| 839 | } |
| 840 | |
| 841 | // Implements asserts that an object is implemented by the specified interface. |
| 842 | // |
no test coverage detected
searching dependent graphs…