Home / Function/ Test_App_Mount() — fiber Function Reference

Test_App_Mount() — fiber Function Reference

Architecture documentation for the Test_App_Mount() function in mount_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  08bccaac_8d2c_6770_534c_bfbf7d695517["Test_App_Mount()"]
  dbd7cc10_1955_3f67_b103_5ae841223af0["mount_test.go"]
  08bccaac_8d2c_6770_534c_bfbf7d695517 -->|defined in| dbd7cc10_1955_3f67_b103_5ae841223af0
  style 08bccaac_8d2c_6770_534c_bfbf7d695517 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

mount_test.go lines 18–31

func Test_App_Mount(t *testing.T) {
	t.Parallel()
	micro := New()
	micro.Get("/doe", func(c Ctx) error {
		return c.SendStatus(StatusOK)
	})

	app := New()
	app.Use("/john", micro)
	resp, err := app.Test(httptest.NewRequest(MethodGet, "/john/doe", http.NoBody))
	require.NoError(t, err, "app.Test(req)")
	require.Equal(t, 200, resp.StatusCode, "Status code")
	require.Equal(t, uint32(2), app.handlersCount)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_App_Mount() do?
Test_App_Mount() is a function in the fiber codebase, defined in mount_test.go.
Where is Test_App_Mount() defined?
Test_App_Mount() is defined in mount_test.go at line 18.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free