HTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string. a.HTTPBodyNotContains(myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky") Returns whether the assertion was successful (true) or not (false).
(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{})
| 567 | // |
| 568 | // Returns whether the assertion was successful (true) or not (false). |
| 569 | func (a *Assertions) HTTPBodyNotContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) bool { |
| 570 | if h, ok := a.t.(tHelper); ok { |
| 571 | h.Helper() |
| 572 | } |
| 573 | return HTTPBodyNotContains(a.t, handler, method, url, values, str, msgAndArgs...) |
| 574 | } |
| 575 | |
| 576 | // HTTPBodyNotContainsf asserts that a specified handler returns a |
| 577 | // body that does not contain a string. |