TestContextRenderRedirectAll() — gin Function Reference
Architecture documentation for the TestContextRenderRedirectAll() function in context_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 78b251f2_ed2f_b2a5_3b29_9e556bca19c8["TestContextRenderRedirectAll()"] ebe0ae48_a62b_a38f_5bac_5bbbd96fc508["context_test.go"] 78b251f2_ed2f_b2a5_3b29_9e556bca19c8 -->|defined in| ebe0ae48_a62b_a38f_5bac_5bbbd96fc508 style 78b251f2_ed2f_b2a5_3b29_9e556bca19c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
context_test.go lines 1590–1599
func TestContextRenderRedirectAll(t *testing.T) {
c, _ := CreateTestContext(httptest.NewRecorder())
c.Request, _ = http.NewRequest(http.MethodPost, "http://example.com", nil)
assert.Panics(t, func() { c.Redirect(http.StatusOK, "/resource") })
assert.Panics(t, func() { c.Redirect(http.StatusAccepted, "/resource") })
assert.Panics(t, func() { c.Redirect(299, "/resource") })
assert.Panics(t, func() { c.Redirect(309, "/resource") })
assert.NotPanics(t, func() { c.Redirect(http.StatusMultipleChoices, "/resource") })
assert.NotPanics(t, func() { c.Redirect(http.StatusPermanentRedirect, "/resource") })
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestContextRenderRedirectAll() do?
TestContextRenderRedirectAll() is a function in the gin codebase, defined in context_test.go.
Where is TestContextRenderRedirectAll() defined?
TestContextRenderRedirectAll() is defined in context_test.go at line 1590.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free