TestLoadHTMLFSUsingTLS() — gin Function Reference
Architecture documentation for the TestLoadHTMLFSUsingTLS() function in gin_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 4d7a4d9d_3a70_158e_8ea9_664d6b470ff0["TestLoadHTMLFSUsingTLS()"] 5d6e7276_feeb_b8e2_30e8_0ae0827740a5["gin_test.go"] 4d7a4d9d_3a70_158e_8ea9_664d6b470ff0 -->|defined in| 5d6e7276_feeb_b8e2_30e8_0ae0827740a5 41c3ab2e_fa1a_0295_1f40_856802537a58["setupHTMLFiles()"] 4d7a4d9d_3a70_158e_8ea9_664d6b470ff0 -->|calls| 41c3ab2e_fa1a_0295_1f40_856802537a58 style 4d7a4d9d_3a70_158e_8ea9_664d6b470ff0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin_test.go lines 390–415
func TestLoadHTMLFSUsingTLS(t *testing.T) {
ts := setupHTMLFiles(
t,
TestMode,
true,
func(router *Engine) {
router.LoadHTMLFS(tmplFS, "hello.tmpl", "raw.tmpl")
},
)
defer ts.Close()
// Use InsecureSkipVerify for avoiding `x509: certificate signed by unknown authority` error
tr := &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
}
client := &http.Client{Transport: tr}
res, err := client.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
Defined In
Calls
Source
Frequently Asked Questions
What does TestLoadHTMLFSUsingTLS() do?
TestLoadHTMLFSUsingTLS() is a function in the gin codebase, defined in gin_test.go.
Where is TestLoadHTMLFSUsingTLS() defined?
TestLoadHTMLFSUsingTLS() is defined in gin_test.go at line 390.
What does TestLoadHTMLFSUsingTLS() call?
TestLoadHTMLFSUsingTLS() 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