TestDebugPrintRoutes() — gin Function Reference
Architecture documentation for the TestDebugPrintRoutes() function in debug_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 37e0965d_3863_9dce_f74b_67b2feacccad["TestDebugPrintRoutes()"] 8ee5a2af_634d_2b9b_d50c_11685d28130a["captureOutput()"] 37e0965d_3863_9dce_f74b_67b2feacccad -->|calls| 8ee5a2af_634d_2b9b_d50c_11685d28130a style 37e0965d_3863_9dce_f74b_67b2feacccad 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
Calls
Source
Frequently Asked Questions
What does TestDebugPrintRoutes() do?
TestDebugPrintRoutes() is a function in the gin codebase.
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