TestLoadHTMLGlobDebugMode() — gin Function Reference
Architecture documentation for the TestLoadHTMLGlobDebugMode() function in gin_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD ff723594_9a35_eec5_a52c_0f0f6358b21c["TestLoadHTMLGlobDebugMode()"] 936be97e_cadf_7cb7_50da_f99734bf8011["setupHTMLFiles()"] ff723594_9a35_eec5_a52c_0f0f6358b21c -->|calls| 936be97e_cadf_7cb7_50da_f99734bf8011 style ff723594_9a35_eec5_a52c_0f0f6358b21c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin_test.go lines 65–83
func TestLoadHTMLGlobDebugMode(t *testing.T) {
ts := setupHTMLFiles(
t,
DebugMode,
false,
func(router *Engine) {
router.LoadHTMLGlob("./testdata/template/*")
},
)
defer ts.Close()
res, err := http.Get(ts.URL + "/test")
if err != nil {
t.Error(err)
}
resp, _ := io.ReadAll(res.Body)
assert.Equal(t, "<h1>Hello world</h1>", string(resp))
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestLoadHTMLGlobDebugMode() do?
TestLoadHTMLGlobDebugMode() is a function in the gin codebase.
What does TestLoadHTMLGlobDebugMode() call?
TestLoadHTMLGlobDebugMode() calls 1 function(s): setupHTMLFiles.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free