HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. require.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{})
| 708 | // |
| 709 | // Returns whether the assertion was successful (true) or not (false). |
| 710 | func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) { |
| 711 | if h, ok := t.(tHelper); ok { |
| 712 | h.Helper() |
| 713 | } |
| 714 | if assert.HTTPBodyNotContainsf(t, handler, method, url, values, str, msg, args...) { |
| 715 | return |
| 716 | } |
| 717 | t.FailNow() |
| 718 | } |
| 719 | |
| 720 | // HTTPError asserts that a specified handler returns an error status code. |
| 721 | // |
no test coverage detected