HTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string. require.HTTPBodyNotContains(t, myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky") Returns whether the assertion was successful (true) or not (false).
(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{})
| 706 | // |
| 707 | // Returns whether the assertion was successful (true) or not (false). |
| 708 | func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) { |
| 709 | if h, ok := t.(tHelper); ok { |
| 710 | h.Helper() |
| 711 | } |
| 712 | if assert.HTTPBodyNotContains(t, handler, method, url, values, str, msgAndArgs...) { |
| 713 | return |
| 714 | } |
| 715 | t.FailNow() |
| 716 | } |
| 717 | |
| 718 | // HTTPBodyNotContainsf asserts that a specified handler returns a |
| 719 | // body that does not contain a string. |
no test coverage detected