HTTPBodyContains asserts that a specified handler returns a body that contains a string. a.HTTPBodyContains(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{})
| 529 | // |
| 530 | // Returns whether the assertion was successful (true) or not (false). |
| 531 | func (a *Assertions) HTTPBodyContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) { |
| 532 | if h, ok := a.t.(tHelper); ok { |
| 533 | h.Helper() |
| 534 | } |
| 535 | HTTPBodyContains(a.t, handler, method, url, values, str, msgAndArgs...) |
| 536 | } |
| 537 | |
| 538 | // HTTPBodyContainsf asserts that a specified handler returns a |
| 539 | // body that contains a string. |
nothing calls this directly
no test coverage detected