TestNoRouteWithoutGlobalHandlers() — gin Function Reference
Architecture documentation for the TestNoRouteWithoutGlobalHandlers() function in gin_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 6fe35aa9_e095_b4a7_de1d_c628e76fa31b["TestNoRouteWithoutGlobalHandlers()"] 8319344f_51a7_0885_fb3d_affd8c633546["compareFunc()"] 6fe35aa9_e095_b4a7_de1d_c628e76fa31b -->|calls| 8319344f_51a7_0885_fb3d_affd8c633546 style 6fe35aa9_e095_b4a7_de1d_c628e76fa31b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin_test.go lines 472–492
func TestNoRouteWithoutGlobalHandlers(t *testing.T) {
var middleware0 HandlerFunc = func(c *Context) {}
var middleware1 HandlerFunc = func(c *Context) {}
router := New()
router.NoRoute(middleware0)
assert.Nil(t, router.Handlers)
assert.Len(t, router.noRoute, 1)
assert.Len(t, router.allNoRoute, 1)
compareFunc(t, router.noRoute[0], middleware0)
compareFunc(t, router.allNoRoute[0], middleware0)
router.NoRoute(middleware1, middleware0)
assert.Len(t, router.noRoute, 2)
assert.Len(t, router.allNoRoute, 2)
compareFunc(t, router.noRoute[0], middleware1)
compareFunc(t, router.allNoRoute[0], middleware1)
compareFunc(t, router.noRoute[1], middleware0)
compareFunc(t, router.allNoRoute[1], middleware0)
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestNoRouteWithoutGlobalHandlers() do?
TestNoRouteWithoutGlobalHandlers() is a function in the gin codebase.
What does TestNoRouteWithoutGlobalHandlers() call?
TestNoRouteWithoutGlobalHandlers() 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