TestDebugPrintError() — gin Function Reference
Architecture documentation for the TestDebugPrintError() function in debug_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 2fa6b311_9bc1_6b03_1fea_dab4c59689d6["TestDebugPrintError()"] 93aa143e_ba29_95e3_6171_a922a9c84ca0["debug_test.go"] 2fa6b311_9bc1_6b03_1fea_dab4c59689d6 -->|defined in| 93aa143e_ba29_95e3_6171_a922a9c84ca0 00345091_92ac_a265_c869_edad36a41a3b["captureOutput()"] 2fa6b311_9bc1_6b03_1fea_dab4c59689d6 -->|calls| 00345091_92ac_a265_c869_edad36a41a3b style 2fa6b311_9bc1_6b03_1fea_dab4c59689d6 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
Defined In
Calls
Source
Frequently Asked Questions
What does TestDebugPrintError() do?
TestDebugPrintError() is a function in the gin codebase, defined in debug_test.go.
Where is TestDebugPrintError() defined?
TestDebugPrintError() is defined in debug_test.go at line 58.
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