TestDebugPrintWARNINGSetHTMLTemplate() — gin Function Reference
Architecture documentation for the TestDebugPrintWARNINGSetHTMLTemplate() function in debug_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 5727a912_5bd0_ef3f_cef7_94285407288d["TestDebugPrintWARNINGSetHTMLTemplate()"] 8ee5a2af_634d_2b9b_d50c_11685d28130a["captureOutput()"] 5727a912_5bd0_ef3f_cef7_94285407288d -->|calls| 8ee5a2af_634d_2b9b_d50c_11685d28130a style 5727a912_5bd0_ef3f_cef7_94285407288d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
debug_test.go lines 99–106
func TestDebugPrintWARNINGSetHTMLTemplate(t *testing.T) {
re := captureOutput(t, func() {
SetMode(DebugMode)
debugPrintWARNINGSetHTMLTemplate()
SetMode(TestMode)
})
assert.Equal(t, "[GIN-debug] [WARNING] Since SetHTMLTemplate() is NOT thread-safe. It should only be called\nat initialization. ie. before any route is registered or the router is listening in a socket:\n\n\trouter := gin.Default()\n\trouter.SetHTMLTemplate(template) // << good place\n\n", re)
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestDebugPrintWARNINGSetHTMLTemplate() do?
TestDebugPrintWARNINGSetHTMLTemplate() is a function in the gin codebase.
What does TestDebugPrintWARNINGSetHTMLTemplate() call?
TestDebugPrintWARNINGSetHTMLTemplate() 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