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

Function HTTPBodyNotContains

internal/testify/require/require.go:695–703  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

693//
694// Returns whether the assertion was successful (true) or not (false).
695func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) {
696 if h, ok := t.(tHelper); ok {
697 h.Helper()
698 }
699 if assert.HTTPBodyNotContains(t, handler, method, url, values, str, msgAndArgs...) {
700 return
701 }
702 t.FailNow()
703}
704
705// HTTPBodyNotContainsf asserts that a specified handler returns a
706// body that does not contain a string.

Callers 1

HTTPBodyNotContainsMethod · 0.70

Calls 3

HTTPBodyNotContainsFunction · 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…