testRoutes() — gin Function Reference
Architecture documentation for the testRoutes() function in tree_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 2bc5b391_d4b7_b2bf_eab0_46c3c2074f43["testRoutes()"] 95642d64_cc2a_14f0_a93c_52464b2a60b9["tree_test.go"] 2bc5b391_d4b7_b2bf_eab0_46c3c2074f43 -->|defined in| 95642d64_cc2a_14f0_a93c_52464b2a60b9 09fbae70_3384_be34_8652_fcc352dab615["TestTreeWildcardConflict()"] 09fbae70_3384_be34_8652_fcc352dab615 -->|calls| 2bc5b391_d4b7_b2bf_eab0_46c3c2074f43 dd24c37d_1219_4d5c_d766_2e09d9102438["TestCatchAllAfterSlash()"] dd24c37d_1219_4d5c_d766_2e09d9102438 -->|calls| 2bc5b391_d4b7_b2bf_eab0_46c3c2074f43 6fdf75cf_863d_e2d1_ba54_0502c22e48b6["TestTreeChildConflict()"] 6fdf75cf_863d_e2d1_ba54_0502c22e48b6 -->|calls| 2bc5b391_d4b7_b2bf_eab0_46c3c2074f43 80867903_6183_51db_b674_ff0c21d6df95["TestTreeCatchAllConflict()"] 80867903_6183_51db_b674_ff0c21d6df95 -->|calls| 2bc5b391_d4b7_b2bf_eab0_46c3c2074f43 ada3d6de_5b8f_31a2_f446_f830123da81a["TestTreeCatchAllConflictRoot()"] ada3d6de_5b8f_31a2_f446_f830123da81a -->|calls| 2bc5b391_d4b7_b2bf_eab0_46c3c2074f43 e88fa484_0d98_1d59_f804_c3948a6745fe["catchPanic()"] 2bc5b391_d4b7_b2bf_eab0_46c3c2074f43 -->|calls| e88fa484_0d98_1d59_f804_c3948a6745fe style 2bc5b391_d4b7_b2bf_eab0_46c3c2074f43 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tree_test.go lines 376–392
func testRoutes(t *testing.T, routes []testRoute) {
tree := &node{}
for _, route := range routes {
recv := catchPanic(func() {
tree.addRoute(route.path, nil)
})
if route.conflict {
if recv == nil {
t.Errorf("no panic for conflicting route '%s'", route.path)
}
} else if recv != nil {
t.Errorf("unexpected panic for route '%s': %v", route.path, recv)
}
}
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does testRoutes() do?
testRoutes() is a function in the gin codebase, defined in tree_test.go.
Where is testRoutes() defined?
testRoutes() is defined in tree_test.go at line 376.
What does testRoutes() call?
testRoutes() calls 1 function(s): catchPanic.
What calls testRoutes()?
testRoutes() is called by 5 function(s): TestCatchAllAfterSlash, TestTreeCatchAllConflict, TestTreeCatchAllConflictRoot, TestTreeChildConflict, TestTreeWildcardConflict.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free