TestNoRouteWithGlobalHandlers() — gin Function Reference
Architecture documentation for the TestNoRouteWithGlobalHandlers() function in gin_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 8cfdf9d1_18f5_da97_7634_d16aabb2859a["TestNoRouteWithGlobalHandlers()"] 8319344f_51a7_0885_fb3d_affd8c633546["compareFunc()"] 8cfdf9d1_18f5_da97_7634_d16aabb2859a -->|calls| 8319344f_51a7_0885_fb3d_affd8c633546 style 8cfdf9d1_18f5_da97_7634_d16aabb2859a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin_test.go lines 494–523
func TestNoRouteWithGlobalHandlers(t *testing.T) {
var middleware0 HandlerFunc = func(c *Context) {}
var middleware1 HandlerFunc = func(c *Context) {}
var middleware2 HandlerFunc = func(c *Context) {}
router := New()
router.Use(middleware2)
router.NoRoute(middleware0)
assert.Len(t, router.allNoRoute, 2)
assert.Len(t, router.Handlers, 1)
assert.Len(t, router.noRoute, 1)
compareFunc(t, router.Handlers[0], middleware2)
compareFunc(t, router.noRoute[0], middleware0)
compareFunc(t, router.allNoRoute[0], middleware2)
compareFunc(t, router.allNoRoute[1], middleware0)
router.Use(middleware1)
assert.Len(t, router.allNoRoute, 3)
assert.Len(t, router.Handlers, 2)
assert.Len(t, router.noRoute, 1)
compareFunc(t, router.Handlers[0], middleware2)
compareFunc(t, router.Handlers[1], middleware1)
compareFunc(t, router.noRoute[0], middleware0)
compareFunc(t, router.allNoRoute[0], middleware2)
compareFunc(t, router.allNoRoute[1], middleware1)
compareFunc(t, router.allNoRoute[2], middleware0)
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestNoRouteWithGlobalHandlers() do?
TestNoRouteWithGlobalHandlers() is a function in the gin codebase.
What does TestNoRouteWithGlobalHandlers() call?
TestNoRouteWithGlobalHandlers() calls 1 function(s): compareFunc.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free