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

Method HTTPRedirectf

internal/testify/require/require_forward.go:618–623  ·  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

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

Callers

nothing calls this directly

Calls 2

HTTPRedirectfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected