TestDebugPrintRouteFunc() — gin Function Reference
Architecture documentation for the TestDebugPrintRouteFunc() function in debug_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 63b0d5d4_4938_32fd_d22b_db1e49e8338a["TestDebugPrintRouteFunc()"] 93aa143e_ba29_95e3_6171_a922a9c84ca0["debug_test.go"] 63b0d5d4_4938_32fd_d22b_db1e49e8338a -->|defined in| 93aa143e_ba29_95e3_6171_a922a9c84ca0 00345091_92ac_a265_c869_edad36a41a3b["captureOutput()"] 63b0d5d4_4938_32fd_d22b_db1e49e8338a -->|calls| 00345091_92ac_a265_c869_edad36a41a3b style 63b0d5d4_4938_32fd_d22b_db1e49e8338a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
debug_test.go lines 77–87
func TestDebugPrintRouteFunc(t *testing.T) {
DebugPrintRouteFunc = func(httpMethod, absolutePath, handlerName string, nuHandlers int) {
fmt.Fprintf(DefaultWriter, "[GIN-debug] %-6s %-40s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers)
}
re := captureOutput(t, func() {
SetMode(DebugMode)
debugPrintRoute(http.MethodGet, "/path/to/route/:param1/:param2", HandlersChain{func(c *Context) {}, handlerNameTest})
SetMode(TestMode)
})
assert.Regexp(t, `^\[GIN-debug\] GET /path/to/route/:param1/:param2 --> (.*/vendor/)?github.com/gin-gonic/gin.handlerNameTest \(2 handlers\)\n$`, re)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does TestDebugPrintRouteFunc() do?
TestDebugPrintRouteFunc() is a function in the gin codebase, defined in debug_test.go.
Where is TestDebugPrintRouteFunc() defined?
TestDebugPrintRouteFunc() is defined in debug_test.go at line 77.
What does TestDebugPrintRouteFunc() call?
TestDebugPrintRouteFunc() 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