Test_Ctx_Get_Location_From_Route_name_Optional_greedy() — fiber Function Reference
Architecture documentation for the Test_Ctx_Get_Location_From_Route_name_Optional_greedy() function in ctx_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 29b1d1e7_8b3e_4b4a_2fb0_189bc653f5b9["Test_Ctx_Get_Location_From_Route_name_Optional_greedy()"] 7b3d4933_5ae3_f84d_ff6d_0cb34e268026["ctx_test.go"] 29b1d1e7_8b3e_4b4a_2fb0_189bc653f5b9 -->|defined in| 7b3d4933_5ae3_f84d_ff6d_0cb34e268026 style 29b1d1e7_8b3e_4b4a_2fb0_189bc653f5b9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
ctx_test.go lines 7011–7027
func Test_Ctx_Get_Location_From_Route_name_Optional_greedy(t *testing.T) {
t.Parallel()
app := New()
c := app.AcquireCtx(&fasthttp.RequestCtx{})
app.Get("/:phone/*/send/*", func(c Ctx) error {
return c.SendString("Phone: " + c.Params("phone") + "\nFirst Param: " + c.Params("*1") + "\nSecond Param: " + c.Params("*2"))
}).Name("SendSms")
location, err := c.GetRouteURL("SendSms", Map{
"phone": "23456789",
"*1": "sms",
"*2": "test-msg",
})
require.NoError(t, err)
require.Equal(t, "/23456789/sms/send/test-msg", location)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Ctx_Get_Location_From_Route_name_Optional_greedy() do?
Test_Ctx_Get_Location_From_Route_name_Optional_greedy() is a function in the fiber codebase, defined in ctx_test.go.
Where is Test_Ctx_Get_Location_From_Route_name_Optional_greedy() defined?
Test_Ctx_Get_Location_From_Route_name_Optional_greedy() is defined in ctx_test.go at line 7011.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free