MCPcopy Index your code
hub / github.com/expr-lang/expr / HTTPBodyNotContainsf

Method HTTPBodyNotContainsf

internal/testify/require/require_forward.go:570–575  ·  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

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

Callers

nothing calls this directly

Calls 2

HTTPBodyNotContainsfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected