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