HTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string. assert.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{})
| 693 | // |
| 694 | // Returns whether the assertion was successful (true) or not (false). |
| 695 | func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) { |
| 696 | if h, ok := t.(tHelper); ok { |
| 697 | h.Helper() |
| 698 | } |
| 699 | if assert.HTTPBodyNotContains(t, handler, method, url, values, str, msgAndArgs...) { |
| 700 | return |
| 701 | } |
| 702 | t.FailNow() |
| 703 | } |
| 704 | |
| 705 | // HTTPBodyNotContainsf asserts that a specified handler returns a |
| 706 | // body that does not contain a string. |
no test coverage detected
searching dependent graphs…