TestRenderStringLenZero() — gin Function Reference
Architecture documentation for the TestRenderStringLenZero() function in render_test.go from the gin codebase.
Entity Profile
Relationship Graph
Source Code
render/render_test.go lines 477–488
func TestRenderStringLenZero(t *testing.T) {
w := httptest.NewRecorder()
err := (String{
Format: "hola %s %d",
Data: []any{},
}).Render(w)
require.NoError(t, err)
assert.Equal(t, "hola %s %d", w.Body.String())
assert.Equal(t, "text/plain; charset=utf-8", w.Header().Get("Content-Type"))
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free