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

Function HTTPRedirectf

internal/testify/assert/assertion_format.go:310–315  ·  view source on GitHub ↗

HTTPRedirectf asserts that a specified handler returns a redirect status code. assert.HTTPRedirectf(t, myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}} Returns whether the assertion was successful (true) or not (false).

(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

308//
309// Returns whether the assertion was successful (true) or not (false).
310func HTTPRedirectf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool {
311 if h, ok := t.(tHelper); ok {
312 h.Helper()
313 }
314 return HTTPRedirect(t, handler, method, url, values, append([]interface{}{msg}, args...)...)
315}
316
317// HTTPStatusCodef asserts that a specified handler returns a specified status code.
318//

Callers 2

HTTPRedirectfFunction · 0.92
HTTPRedirectfMethod · 0.70

Calls 2

HTTPRedirectFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…