Test_Router_NotFound_HTML_Inject() — fiber Function Reference
Architecture documentation for the Test_Router_NotFound_HTML_Inject() function in router_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 67d20b6d_ebc6_6ad5_ae3f_2162a781d91f["Test_Router_NotFound_HTML_Inject()"] 326d7e00_9e4f_d854_0c78_b9c0c93e5537["router_test.go"] 67d20b6d_ebc6_6ad5_ae3f_2162a781d91f -->|defined in| 326d7e00_9e4f_d854_0c78_b9c0c93e5537 style 67d20b6d_ebc6_6ad5_ae3f_2162a781d91f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
router_test.go lines 810–826
func Test_Router_NotFound_HTML_Inject(t *testing.T) {
t.Parallel()
app := New()
app.Use(func(c Ctx) error {
return c.Next()
})
appHandler := app.Handler()
c := &fasthttp.RequestCtx{}
c.Request.Header.SetMethod("DELETE")
c.URI().SetPath("/does/not/exist<script>alert('foo');</script>")
appHandler(c)
require.Equal(t, 404, c.Response.StatusCode())
require.Equal(t, "Not Found", string(c.Response.Body()))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Router_NotFound_HTML_Inject() do?
Test_Router_NotFound_HTML_Inject() is a function in the fiber codebase, defined in router_test.go.
Where is Test_Router_NotFound_HTML_Inject() defined?
Test_Router_NotFound_HTML_Inject() is defined in router_test.go at line 810.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free