TestRenderHTMLDebugFS() — gin Function Reference
Architecture documentation for the TestRenderHTMLDebugFS() function in render_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD b5c22489_8b45_264b_a0c1_af414b7eabcb["TestRenderHTMLDebugFS()"] 067a4839_481a_7bd8_fc59_5c8c3313879c["render_test.go"] b5c22489_8b45_264b_a0c1_af414b7eabcb -->|defined in| 067a4839_481a_7bd8_fc59_5c8c3313879c style b5c22489_8b45_264b_a0c1_af414b7eabcb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
render/render_test.go lines 564–583
func TestRenderHTMLDebugFS(t *testing.T) {
w := httptest.NewRecorder()
htmlRender := HTMLDebug{
Files: nil,
Glob: "",
FileSystem: http.Dir("../testdata/template"),
Patterns: []string{"hello.tmpl"},
Delims: Delims{Left: "{[{", Right: "}]}"},
FuncMap: nil,
}
instance := htmlRender.Instance("hello.tmpl", map[string]any{
"name": "thinkerou",
})
err := instance.Render(w)
require.NoError(t, err)
assert.Equal(t, "<h1>Hello thinkerou</h1>", w.Body.String())
assert.Equal(t, "text/html; charset=utf-8", w.Header().Get("Content-Type"))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestRenderHTMLDebugFS() do?
TestRenderHTMLDebugFS() is a function in the gin codebase, defined in render/render_test.go.
Where is TestRenderHTMLDebugFS() defined?
TestRenderHTMLDebugFS() is defined in render/render_test.go at line 564.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free