HTTPStatusCodef asserts that a specified handler returns a specified status code. a.HTTPStatusCodef(myHandler, "GET", "/notImplemented", nil, 501, "error message %s", "formatted") Returns whether the assertion was successful (true) or not (false).
(handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msg string, args ...interface{})
| 640 | // |
| 641 | // Returns whether the assertion was successful (true) or not (false). |
| 642 | func (a *Assertions) HTTPStatusCodef(handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msg string, args ...interface{}) { |
| 643 | if h, ok := a.t.(tHelper); ok { |
| 644 | h.Helper() |
| 645 | } |
| 646 | HTTPStatusCodef(a.t, handler, method, url, values, statuscode, msg, args...) |
| 647 | } |
| 648 | |
| 649 | // HTTPSuccess asserts that a specified handler returns a success status code. |
| 650 | // |
nothing calls this directly
no test coverage detected