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

Method HTTPSuccessf

internal/testify/require/require_forward.go:666–671  ·  view source on GitHub ↗

HTTPSuccessf asserts that a specified handler returns a success status code. a.HTTPSuccessf(myHandler, "POST", "http://www.google.com", nil, "error message %s", "formatted") Returns whether the assertion was successful (true) or not (false).

(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

664//
665// Returns whether the assertion was successful (true) or not (false).
666func (a *Assertions) HTTPSuccessf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) {
667 if h, ok := a.t.(tHelper); ok {
668 h.Helper()
669 }
670 HTTPSuccessf(a.t, handler, method, url, values, msg, args...)
671}
672
673// Implements asserts that an object is implemented by the specified interface.
674//

Callers

nothing calls this directly

Calls 2

HTTPSuccessfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected