HTTPBodyContainsf asserts that a specified handler returns a body that contains a string. a.HTTPBodyContainsf(myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted") Returns whether the assertion was successful (true) or not (false).
(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{})
| 540 | // |
| 541 | // Returns whether the assertion was successful (true) or not (false). |
| 542 | func (a *Assertions) HTTPBodyContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) bool { |
| 543 | if h, ok := a.t.(tHelper); ok { |
| 544 | h.Helper() |
| 545 | } |
| 546 | return HTTPBodyContainsf(a.t, handler, method, url, values, str, msg, args...) |
| 547 | } |
| 548 | |
| 549 | // HTTPBodyNotContains asserts that a specified handler returns a |
| 550 | // body that does not contain a string. |
nothing calls this directly
no test coverage detected