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

Method HTTPBodyContainsf

internal/testify/require/require_forward.go:544–549  ·  view source on GitHub ↗

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

542//
543// Returns whether the assertion was successful (true) or not (false).
544func (a *Assertions) HTTPBodyContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) {
545 if h, ok := a.t.(tHelper); ok {
546 h.Helper()
547 }
548 HTTPBodyContainsf(a.t, handler, method, url, values, str, msg, args...)
549}
550
551// HTTPBodyNotContains asserts that a specified handler returns a
552// body that does not contain a string.

Callers

nothing calls this directly

Calls 2

HTTPBodyContainsfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected