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

Method HTTPBodyNotContains

internal/testify/assert/assertion_forward.go:555–560  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

553//
554// Returns whether the assertion was successful (true) or not (false).
555func (a *Assertions) HTTPBodyNotContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) bool {
556 if h, ok := a.t.(tHelper); ok {
557 h.Helper()
558 }
559 return HTTPBodyNotContains(a.t, handler, method, url, values, str, msgAndArgs...)
560}
561
562// HTTPBodyNotContainsf asserts that a specified handler returns a
563// body that does not contain a string.

Callers 1

TestHttpBodyWrappersFunction · 0.45

Calls 2

HTTPBodyNotContainsFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestHttpBodyWrappersFunction · 0.36