Test_Non_Expvar_Path() — fiber Function Reference
Architecture documentation for the Test_Non_Expvar_Path() function in expvar_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 1f052da3_835a_4073_7190_b9a86f14cf48["Test_Non_Expvar_Path()"] 7f08b7dd_0752_15a0_3379_0c8823832083["expvar_test.go"] 1f052da3_835a_4073_7190_b9a86f14cf48 -->|defined in| 7f08b7dd_0752_15a0_3379_0c8823832083 style 1f052da3_835a_4073_7190_b9a86f14cf48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/expvar/expvar_test.go lines 14–31
func Test_Non_Expvar_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, "/", http.NoBody))
require.NoError(t, err)
require.Equal(t, 200, resp.StatusCode)
b, err := io.ReadAll(resp.Body)
require.NoError(t, err)
require.Equal(t, "escaped", string(b))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Non_Expvar_Path() do?
Test_Non_Expvar_Path() is a function in the fiber codebase, defined in middleware/expvar/expvar_test.go.
Where is Test_Non_Expvar_Path() defined?
Test_Non_Expvar_Path() is defined in middleware/expvar/expvar_test.go at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free