Home / Function/ Test_Expvar_Other_Path() — fiber Function Reference

Test_Expvar_Other_Path() — fiber Function Reference

Architecture documentation for the Test_Expvar_Other_Path() function in expvar_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  b26bd6df_be0e_d5cc_3b48_b5579cb67b82["Test_Expvar_Other_Path()"]
  7f08b7dd_0752_15a0_3379_0c8823832083["expvar_test.go"]
  b26bd6df_be0e_d5cc_3b48_b5579cb67b82 -->|defined in| 7f08b7dd_0752_15a0_3379_0c8823832083
  style b26bd6df_be0e_d5cc_3b48_b5579cb67b82 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/expvar/expvar_test.go lines 75–88

func Test_Expvar_Other_Path(t *testing.T) {
	t.Parallel()
	app := fiber.New()

	app.Use(New())

	app.Get("/", func(c fiber.Ctx) error {
		return c.SendString("escaped")
	})

	resp, err := app.Test(httptest.NewRequest(fiber.MethodGet, "/debug/vars/303", http.NoBody))
	require.NoError(t, err)
	require.Equal(t, fiber.StatusSeeOther, resp.StatusCode)
}

Domain

Subdomains

Frequently Asked Questions

What does Test_Expvar_Other_Path() do?
Test_Expvar_Other_Path() is a function in the fiber codebase, defined in middleware/expvar/expvar_test.go.
Where is Test_Expvar_Other_Path() defined?
Test_Expvar_Other_Path() is defined in middleware/expvar/expvar_test.go at line 75.

Analyze Your Own Codebase

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

Try Supermodel Free