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

Method HTTPRedirect

internal/testify/require/require_forward.go:606–611  ·  view source on GitHub ↗

HTTPRedirect asserts that a specified handler returns a redirect status code. a.HTTPRedirect(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}} 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

604//
605// Returns whether the assertion was successful (true) or not (false).
606func (a *Assertions) HTTPRedirect(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) {
607 if h, ok := a.t.(tHelper); ok {
608 h.Helper()
609 }
610 HTTPRedirect(a.t, handler, method, url, values, msgAndArgs...)
611}
612
613// HTTPRedirectf asserts that a specified handler returns a redirect status code.
614//

Callers

nothing calls this directly

Calls 2

HTTPRedirectFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected