TestDebugPrintError() — gin Function Reference
Architecture documentation for the TestDebugPrintError() function in debug_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 180af47c_6002_47be_2d4e_da9fdb0e2e02["TestDebugPrintError()"] 8ee5a2af_634d_2b9b_d50c_11685d28130a["captureOutput()"] 180af47c_6002_47be_2d4e_da9fdb0e2e02 -->|calls| 8ee5a2af_634d_2b9b_d50c_11685d28130a style 180af47c_6002_47be_2d4e_da9fdb0e2e02 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
debug_test.go lines 58–66
func TestDebugPrintError(t *testing.T) {
re := captureOutput(t, func() {
SetMode(DebugMode)
debugPrintError(nil)
debugPrintError(errors.New("this is an error"))
SetMode(TestMode)
})
assert.Equal(t, "[GIN-debug] [ERROR] this is an error\n", re)
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestDebugPrintError() do?
TestDebugPrintError() is a function in the gin codebase.
What does TestDebugPrintError() call?
TestDebugPrintError() 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