MCPcopy
hub / github.com/expr-lang/expr / HTTPBodyNotContainsf

Function HTTPBodyNotContainsf

internal/testify/require/require.go:711–719  ·  view source on GitHub ↗

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

709//
710// Returns whether the assertion was successful (true) or not (false).
711func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) {
712 if h, ok := t.(tHelper); ok {
713 h.Helper()
714 }
715 if assert.HTTPBodyNotContainsf(t, handler, method, url, values, str, msg, args...) {
716 return
717 }
718 t.FailNow()
719}
720
721// HTTPError asserts that a specified handler returns an error status code.
722//

Callers 1

HTTPBodyNotContainsfMethod · 0.70

Calls 3

HTTPBodyNotContainsfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…