TestDebugPrintFunc() — gin Function Reference
Architecture documentation for the TestDebugPrintFunc() function in debug_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 57eedfe7_0eeb_418f_225d_a789f164fd87["TestDebugPrintFunc()"] 93aa143e_ba29_95e3_6171_a922a9c84ca0["debug_test.go"] 57eedfe7_0eeb_418f_225d_a789f164fd87 -->|defined in| 93aa143e_ba29_95e3_6171_a922a9c84ca0 00345091_92ac_a265_c869_edad36a41a3b["captureOutput()"] 57eedfe7_0eeb_418f_225d_a789f164fd87 -->|calls| 00345091_92ac_a265_c869_edad36a41a3b style 57eedfe7_0eeb_418f_225d_a789f164fd87 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
debug_test.go lines 46–56
func TestDebugPrintFunc(t *testing.T) {
DebugPrintFunc = func(format string, values ...any) {
fmt.Fprintf(DefaultWriter, "[GIN-debug] "+format, values...)
}
re := captureOutput(t, func() {
SetMode(DebugMode)
debugPrint("debug print func test: %d", 123)
SetMode(TestMode)
})
assert.Regexp(t, `^\[GIN-debug\] debug print func test: 123`, re)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does TestDebugPrintFunc() do?
TestDebugPrintFunc() is a function in the gin codebase, defined in debug_test.go.
Where is TestDebugPrintFunc() defined?
TestDebugPrintFunc() is defined in debug_test.go at line 46.
What does TestDebugPrintFunc() call?
TestDebugPrintFunc() 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