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

Method HTTPRedirectf

internal/testify/assert/assertion_forward.go:616–621  ·  view source on GitHub ↗

HTTPRedirectf asserts that a specified handler returns a redirect status code. a.HTTPRedirectf(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, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

614//
615// Returns whether the assertion was successful (true) or not (false).
616func (a *Assertions) HTTPRedirectf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool {
617 if h, ok := a.t.(tHelper); ok {
618 h.Helper()
619 }
620 return HTTPRedirectf(a.t, handler, method, url, values, msg, args...)
621}
622
623// HTTPStatusCode asserts that a specified handler returns a specified status code.
624//

Callers

nothing calls this directly

Calls 2

HTTPRedirectfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected