Test_Ctx_Render_MountGroup() — fiber Function Reference
Architecture documentation for the Test_Ctx_Render_MountGroup() function in mount_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD dabfb332_2a6b_cc76_4578_dfb94e3cbdba["Test_Ctx_Render_MountGroup()"] dbd7cc10_1955_3f67_b103_5ae841223af0["mount_test.go"] dabfb332_2a6b_cc76_4578_dfb94e3cbdba -->|defined in| dbd7cc10_1955_3f67_b103_5ae841223af0 style dabfb332_2a6b_cc76_4578_dfb94e3cbdba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
mount_test.go lines 570–598
func Test_Ctx_Render_MountGroup(t *testing.T) {
t.Parallel()
engine := &testTemplateEngine{}
err := engine.Load()
require.NoError(t, err)
micro := New(Config{
Views: engine,
})
micro.Get("/doe", func(c Ctx) error {
return c.Render("hello_world.tmpl", Map{
"Name": "doe",
})
})
app := New()
v1 := app.Group("/v1")
v1.Use("/john", micro)
resp, err := app.Test(httptest.NewRequest(MethodGet, "/v1/john/doe", http.NoBody))
require.NoError(t, err, "app.Test(req)")
require.Equal(t, 200, resp.StatusCode, "Status code")
body, err := io.ReadAll(resp.Body)
require.NoError(t, err)
require.Equal(t, "<h1>Hello doe!</h1>", string(body))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Ctx_Render_MountGroup() do?
Test_Ctx_Render_MountGroup() is a function in the fiber codebase, defined in mount_test.go.
Where is Test_Ctx_Render_MountGroup() defined?
Test_Ctx_Render_MountGroup() is defined in mount_test.go at line 570.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free