Test_Ctx_RenderWithViewBind() — fiber Function Reference
Architecture documentation for the Test_Ctx_RenderWithViewBind() function in ctx_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD d260fbfb_73a4_ca4a_639d_f9f47ab0d5e3["Test_Ctx_RenderWithViewBind()"] 7b3d4933_5ae3_f84d_ff6d_0cb34e268026["ctx_test.go"] d260fbfb_73a4_ca4a_639d_f9f47ab0d5e3 -->|defined in| 7b3d4933_5ae3_f84d_ff6d_0cb34e268026 style d260fbfb_73a4_ca4a_639d_f9f47ab0d5e3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
ctx_test.go lines 6647–6666
func Test_Ctx_RenderWithViewBind(t *testing.T) {
t.Parallel()
app := New()
c := app.AcquireCtx(&fasthttp.RequestCtx{})
err := c.ViewBind(Map{
"Title": "Hello, World!",
})
require.NoError(t, err)
err = c.Render("./.github/testdata/index.tmpl", Map{})
require.NoError(t, err)
buf := bytebufferpool.Get()
buf.WriteString("overwrite")
defer bytebufferpool.Put(buf)
require.NoError(t, err)
require.Equal(t, "<h1>Hello, World!</h1>", string(c.Response().Body()))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Ctx_RenderWithViewBind() do?
Test_Ctx_RenderWithViewBind() is a function in the fiber codebase, defined in ctx_test.go.
Where is Test_Ctx_RenderWithViewBind() defined?
Test_Ctx_RenderWithViewBind() is defined in ctx_test.go at line 6647.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free