TestLoadHTMLFilesFuncMap() — gin Function Reference
Architecture documentation for the TestLoadHTMLFilesFuncMap() function in gin_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 485b063a_f51d_6b64_0df1_a491741e8b4a["TestLoadHTMLFilesFuncMap()"] 936be97e_cadf_7cb7_50da_f99734bf8011["setupHTMLFiles()"] 485b063a_f51d_6b64_0df1_a491741e8b4a -->|calls| 936be97e_cadf_7cb7_50da_f99734bf8011 style 485b063a_f51d_6b64_0df1_a491741e8b4a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin_test.go lines 308–326
func TestLoadHTMLFilesFuncMap(t *testing.T) {
ts := setupHTMLFiles(
t,
TestMode,
false,
func(router *Engine) {
router.LoadHTMLFiles("./testdata/template/hello.tmpl", "./testdata/template/raw.tmpl")
},
)
defer ts.Close()
res, err := http.Get(ts.URL + "/raw")
if err != nil {
t.Error(err)
}
resp, _ := io.ReadAll(res.Body)
assert.Equal(t, "Date: 2017/07/01", string(resp))
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestLoadHTMLFilesFuncMap() do?
TestLoadHTMLFilesFuncMap() is a function in the gin codebase.
What does TestLoadHTMLFilesFuncMap() call?
TestLoadHTMLFilesFuncMap() 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