HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. assert.HTTPBodyNotContainsf(t, myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky", "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, str interface{}, msg string, args ...interface{})
| 291 | // |
| 292 | // Returns whether the assertion was successful (true) or not (false). |
| 293 | func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) bool { |
| 294 | if h, ok := t.(tHelper); ok { |
| 295 | h.Helper() |
| 296 | } |
| 297 | return HTTPBodyNotContains(t, handler, method, url, values, str, append([]interface{}{msg}, args...)...) |
| 298 | } |
| 299 | |
| 300 | // HTTPErrorf asserts that a specified handler returns an error status code. |
| 301 | // |
no test coverage detected