TestDebugPrintRoutes() — gin Function Reference
Architecture documentation for the TestDebugPrintRoutes() function in debug_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 37f99941_5f32_fba2_6f1b_69ed5bb28497["TestDebugPrintRoutes()"] 93aa143e_ba29_95e3_6171_a922a9c84ca0["debug_test.go"] 37f99941_5f32_fba2_6f1b_69ed5bb28497 -->|defined in| 93aa143e_ba29_95e3_6171_a922a9c84ca0 00345091_92ac_a265_c869_edad36a41a3b["captureOutput()"] 37f99941_5f32_fba2_6f1b_69ed5bb28497 -->|calls| 00345091_92ac_a265_c869_edad36a41a3b style 37f99941_5f32_fba2_6f1b_69ed5bb28497 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
debug_test.go lines 68–75
func TestDebugPrintRoutes(t *testing.T) {
re := captureOutput(t, func() {
SetMode(DebugMode)
debugPrintRoute(http.MethodGet, "/path/to/route/:param", HandlersChain{func(c *Context) {}, handlerNameTest})
SetMode(TestMode)
})
assert.Regexp(t, `^\[GIN-debug\] GET /path/to/route/:param --> (.*/vendor/)?github.com/gin-gonic/gin.handlerNameTest \(2 handlers\)\n$`, re)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does TestDebugPrintRoutes() do?
TestDebugPrintRoutes() is a function in the gin codebase, defined in debug_test.go.
Where is TestDebugPrintRoutes() defined?
TestDebugPrintRoutes() is defined in debug_test.go at line 68.
What does TestDebugPrintRoutes() call?
TestDebugPrintRoutes() calls 1 function(s): captureOutput.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free