MCPcopy
hub / github.com/stretchr/testify / HTTPBodyNotContainsf

Function HTTPBodyNotContainsf

assert/assertion_format.go:293–298  ·  assert/assertion_format.go::HTTPBodyNotContainsf

HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. assert.HTTPBodyNotContainsf(t, myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted") Returns whether the assertion was successful (true) or not (false).

(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

291//
292// Returns whether the assertion was successful (true) or not (false).
293func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) bool {
294 if h, ok := t.(tHelper); ok {
295 h.Helper()
296 }
297 return HTTPBodyNotContains(t, handler, method, url, values, str, append([]interface{}{msg}, args...)...)
298}
299
300// HTTPErrorf asserts that a specified handler returns an error status code.
301//

Callers 2

HTTPBodyNotContainsfFunction · 0.92
HTTPBodyNotContainsfMethod · 0.70

Calls 2

HTTPBodyNotContainsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected