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

Method HTTPSuccessf

internal/testify/assert/assertion_forward.go:664–669  ·  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

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

Callers

nothing calls this directly

Calls 2

HTTPSuccessfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected