TestContextRenderNoContentIndentedJSON() — gin Function Reference
Architecture documentation for the TestContextRenderNoContentIndentedJSON() function in context_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD e52ac738_bc19_1a1f_ea9b_04a6c5f036c9["TestContextRenderNoContentIndentedJSON()"] ebe0ae48_a62b_a38f_5bac_5bbbd96fc508["context_test.go"] e52ac738_bc19_1a1f_ea9b_04a6c5f036c9 -->|defined in| ebe0ae48_a62b_a38f_5bac_5bbbd96fc508 style e52ac738_bc19_1a1f_ea9b_04a6c5f036c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
context_test.go lines 1152–1161
func TestContextRenderNoContentIndentedJSON(t *testing.T) {
w := httptest.NewRecorder()
c, _ := CreateTestContext(w)
c.IndentedJSON(http.StatusNoContent, H{"foo": "bar", "bar": "foo", "nested": H{"foo": "bar"}})
assert.Equal(t, http.StatusNoContent, w.Code)
assert.Empty(t, 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 TestContextRenderNoContentIndentedJSON() do?
TestContextRenderNoContentIndentedJSON() is a function in the gin codebase, defined in context_test.go.
Where is TestContextRenderNoContentIndentedJSON() defined?
TestContextRenderNoContentIndentedJSON() is defined in context_test.go at line 1152.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free