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