TestRouterGroupTooManyHandlers() — gin Function Reference
Architecture documentation for the TestRouterGroupTooManyHandlers() function in routergroup_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 9bbad599_4181_4ba7_0e9b_60c477071bd7["TestRouterGroupTooManyHandlers()"] 05f47e3a_87c8_197f_14f5_0e14b25699a8["routergroup_test.go"] 9bbad599_4181_4ba7_0e9b_60c477071bd7 -->|defined in| 05f47e3a_87c8_197f_14f5_0e14b25699a8 style 9bbad599_4181_4ba7_0e9b_60c477071bd7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
routergroup_test.go lines 127–143
func TestRouterGroupTooManyHandlers(t *testing.T) {
const (
panicValue = "too many handlers"
maximumCnt = abortIndex
)
router := New()
handlers1 := make([]HandlerFunc, maximumCnt-1)
router.Use(handlers1...)
handlers2 := make([]HandlerFunc, maximumCnt+1)
assert.PanicsWithValue(t, panicValue, func() {
router.Use(handlers2...)
})
assert.PanicsWithValue(t, panicValue, func() {
router.GET("/", handlers2...)
})
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestRouterGroupTooManyHandlers() do?
TestRouterGroupTooManyHandlers() is a function in the gin codebase, defined in routergroup_test.go.
Where is TestRouterGroupTooManyHandlers() defined?
TestRouterGroupTooManyHandlers() is defined in routergroup_test.go at line 127.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free