TestLoadHTMLFSFuncMap() — gin Function Reference
Architecture documentation for the TestLoadHTMLFSFuncMap() function in gin_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD cbe7654a_1793_8ce4_6fed_1e2455e75d62["TestLoadHTMLFSFuncMap()"] 5d6e7276_feeb_b8e2_30e8_0ae0827740a5["gin_test.go"] cbe7654a_1793_8ce4_6fed_1e2455e75d62 -->|defined in| 5d6e7276_feeb_b8e2_30e8_0ae0827740a5 41c3ab2e_fa1a_0295_1f40_856802537a58["setupHTMLFiles()"] cbe7654a_1793_8ce4_6fed_1e2455e75d62 -->|calls| 41c3ab2e_fa1a_0295_1f40_856802537a58 style cbe7654a_1793_8ce4_6fed_1e2455e75d62 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin_test.go lines 417–435
func TestLoadHTMLFSFuncMap(t *testing.T) {
ts := setupHTMLFiles(
t,
TestMode,
false,
func(router *Engine) {
router.LoadHTMLFS(tmplFS, "hello.tmpl", "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
Defined In
Calls
Source
Frequently Asked Questions
What does TestLoadHTMLFSFuncMap() do?
TestLoadHTMLFSFuncMap() is a function in the gin codebase, defined in gin_test.go.
Where is TestLoadHTMLFSFuncMap() defined?
TestLoadHTMLFSFuncMap() is defined in gin_test.go at line 417.
What does TestLoadHTMLFSFuncMap() call?
TestLoadHTMLFSFuncMap() 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