MCPcopy Create free account
hub / github.com/stretchr/testify / HTTPBodyNotContainsf

Method HTTPBodyNotContainsf

assert/assertion_forward.go:568–573  ·  view source on GitHub ↗

HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. a.HTTPBodyNotContainsf(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{})

Source from the content-addressed store, hash-verified

566//
567// Returns whether the assertion was successful (true) or not (false).
568func (a *Assertions) HTTPBodyNotContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) bool {
569 if h, ok := a.t.(tHelper); ok {
570 h.Helper()
571 }
572 return HTTPBodyNotContainsf(a.t, handler, method, url, values, str, msg, args...)
573}
574
575// HTTPError asserts that a specified handler returns an error status code.
576//

Callers

nothing calls this directly

Calls 2

HTTPBodyNotContainsfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected