TestRedirectTrailingSlash() — gin Function Reference
Architecture documentation for the TestRedirectTrailingSlash() function in tree_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD e5f64959_8ad6_b041_98c5_ae4eb2d5a6f1["TestRedirectTrailingSlash()"] 6dab8d3e_0986_1500_b06f_6323ea7ce91a["fakeHandler()"] e5f64959_8ad6_b041_98c5_ae4eb2d5a6f1 -->|calls| 6dab8d3e_0986_1500_b06f_6323ea7ce91a 3890ddc0_c7b9_b8d1_7ac9_5fc2030c1b8e["getSkippedNodes()"] e5f64959_8ad6_b041_98c5_ae4eb2d5a6f1 -->|calls| 3890ddc0_c7b9_b8d1_7ac9_5fc2030c1b8e style e5f64959_8ad6_b041_98c5_ae4eb2d5a6f1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tree_test.go lines 694–712
func TestRedirectTrailingSlash(t *testing.T) {
data := []struct {
path string
}{
{"/hello/:name"},
{"/hello/:name/123"},
{"/hello/:name/234"},
}
node := &node{}
for _, item := range data {
node.addRoute(item.path, fakeHandler("test"))
}
value := node.getValue("/hello/abx/", nil, getSkippedNodes(), false)
if value.tsr != true {
t.Fatalf("want true, is false")
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does TestRedirectTrailingSlash() do?
TestRedirectTrailingSlash() is a function in the gin codebase.
What does TestRedirectTrailingSlash() call?
TestRedirectTrailingSlash() calls 2 function(s): fakeHandler, getSkippedNodes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free