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

Method HTTPBodyNotContains

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

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

Callers

nothing calls this directly

Calls 2

HTTPBodyNotContainsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected