TestRenderIndentedJSON() — gin Function Reference
Architecture documentation for the TestRenderIndentedJSON() function in render_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 8ccc8b7d_c35e_4cb5_a8c9_e39cc1966ad8["TestRenderIndentedJSON()"] 067a4839_481a_7bd8_fc59_5c8c3313879c["render_test.go"] 8ccc8b7d_c35e_4cb5_a8c9_e39cc1966ad8 -->|defined in| 067a4839_481a_7bd8_fc59_5c8c3313879c style 8ccc8b7d_c35e_4cb5_a8c9_e39cc1966ad8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
render/render_test.go lines 54–66
func TestRenderIndentedJSON(t *testing.T) {
w := httptest.NewRecorder()
data := map[string]any{
"foo": "bar",
"bar": "foo",
}
err := (IndentedJSON{data}).Render(w)
require.NoError(t, err)
assert.JSONEq(t, "{\n \"bar\": \"foo\",\n \"foo\": \"bar\"\n}", w.Body.String())
assert.Equal(t, "application/json; charset=utf-8", w.Header().Get("Content-Type"))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestRenderIndentedJSON() do?
TestRenderIndentedJSON() is a function in the gin codebase, defined in render/render_test.go.
Where is TestRenderIndentedJSON() defined?
TestRenderIndentedJSON() is defined in render/render_test.go at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free