TestDebugPrintLoadTemplate() — gin Function Reference
Architecture documentation for the TestDebugPrintLoadTemplate() function in debug_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD f7721d7a_fe43_f692_01f6_5d51e24a0d96["TestDebugPrintLoadTemplate()"] 8ee5a2af_634d_2b9b_d50c_11685d28130a["captureOutput()"] f7721d7a_fe43_f692_01f6_5d51e24a0d96 -->|calls| 8ee5a2af_634d_2b9b_d50c_11685d28130a style f7721d7a_fe43_f692_01f6_5d51e24a0d96 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
debug_test.go lines 89–97
func TestDebugPrintLoadTemplate(t *testing.T) {
re := captureOutput(t, func() {
SetMode(DebugMode)
templ := template.Must(template.New("").Delims("{[{", "}]}").ParseGlob("./testdata/template/hello.tmpl"))
debugPrintLoadTemplate(templ)
SetMode(TestMode)
})
assert.Regexp(t, `^\[GIN-debug\] Loaded HTML Templates \(2\): \n(\t- \n|\t- hello\.tmpl\n){2}\n`, re)
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestDebugPrintLoadTemplate() do?
TestDebugPrintLoadTemplate() is a function in the gin codebase.
What does TestDebugPrintLoadTemplate() call?
TestDebugPrintLoadTemplate() 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