HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. a.HTTPBodyNotContainsf(myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted") Returns whether the assertion was successful (true) or not (false).
(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{})
| 581 | // |
| 582 | // Returns whether the assertion was successful (true) or not (false). |
| 583 | func (a *Assertions) HTTPBodyNotContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) { |
| 584 | if h, ok := a.t.(tHelper); ok { |
| 585 | h.Helper() |
| 586 | } |
| 587 | HTTPBodyNotContainsf(a.t, handler, method, url, values, str, msg, args...) |
| 588 | } |
| 589 | |
| 590 | // HTTPError asserts that a specified handler returns an error status code. |
| 591 | // |
nothing calls this directly
no test coverage detected