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

Method HTTPSuccess

internal/testify/require/require_forward.go:654–659  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

652//
653// Returns whether the assertion was successful (true) or not (false).
654func (a *Assertions) HTTPSuccess(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) {
655 if h, ok := a.t.(tHelper); ok {
656 h.Helper()
657 }
658 HTTPSuccess(a.t, handler, method, url, values, msgAndArgs...)
659}
660
661// HTTPSuccessf asserts that a specified handler returns a success status code.
662//

Callers

nothing calls this directly

Calls 2

HTTPSuccessFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected