TestTreeInvalidEscape() — gin Function Reference
Architecture documentation for the TestTreeInvalidEscape() function in tree_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 834749af_7cd2_506e_e9c5_979b728f6c9c["TestTreeInvalidEscape()"] 95642d64_cc2a_14f0_a93c_52464b2a60b9["tree_test.go"] 834749af_7cd2_506e_e9c5_979b728f6c9c -->|defined in| 95642d64_cc2a_14f0_a93c_52464b2a60b9 e88fa484_0d98_1d59_f804_c3948a6745fe["catchPanic()"] 834749af_7cd2_506e_e9c5_979b728f6c9c -->|calls| e88fa484_0d98_1d59_f804_c3948a6745fe 93c1c821_291f_3e71_2ae0_563c40ff3ee5["fakeHandler()"] 834749af_7cd2_506e_e9c5_979b728f6c9c -->|calls| 93c1c821_291f_3e71_2ae0_563c40ff3ee5 style 834749af_7cd2_506e_e9c5_979b728f6c9c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tree_test.go lines 980–995
func TestTreeInvalidEscape(t *testing.T) {
routes := map[string]bool{
"/r1/r": true,
"/r2/:r": true,
"/r3/\\:r": true,
}
tree := &node{}
for route, valid := range routes {
recv := catchPanic(func() {
tree.addRoute(route, fakeHandler(route))
})
if recv == nil != valid {
t.Fatalf("%s should be %t but got %v", route, valid, recv)
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestTreeInvalidEscape() do?
TestTreeInvalidEscape() is a function in the gin codebase, defined in tree_test.go.
Where is TestTreeInvalidEscape() defined?
TestTreeInvalidEscape() is defined in tree_test.go at line 980.
What does TestTreeInvalidEscape() call?
TestTreeInvalidEscape() calls 2 function(s): catchPanic, fakeHandler.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free