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

Function HTTPBodyContainsf

internal/testify/assert/assertion_format.go:273–278  ·  view source on GitHub ↗

HTTPBodyContainsf asserts that a specified handler returns a body that contains a string. assert.HTTPBodyContainsf(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

271//
272// Returns whether the assertion was successful (true) or not (false).
273func HTTPBodyContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) bool {
274 if h, ok := t.(tHelper); ok {
275 h.Helper()
276 }
277 return HTTPBodyContains(t, handler, method, url, values, str, append([]interface{}{msg}, args...)...)
278}
279
280// HTTPBodyNotContainsf asserts that a specified handler returns a
281// body that does not contain a string.

Callers 2

HTTPBodyContainsfFunction · 0.92
HTTPBodyContainsfMethod · 0.70

Calls 2

HTTPBodyContainsFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…