TestEmptyWildcardName() — gin Function Reference
Architecture documentation for the TestEmptyWildcardName() function in tree_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD b308617f_7855_3cdb_b7fb_49e979c6942d["TestEmptyWildcardName()"] 7d17d111_6d55_8539_e0ed_b32eea9e5ef6["catchPanic()"] b308617f_7855_3cdb_b7fb_49e979c6942d -->|calls| 7d17d111_6d55_8539_e0ed_b32eea9e5ef6 style b308617f_7855_3cdb_b7fb_49e979c6942d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tree_test.go lines 495–512
func TestEmptyWildcardName(t *testing.T) {
tree := &node{}
routes := [...]string{
"/user:",
"/user:/",
"/cmd/:/",
"/src/*",
}
for _, route := range routes {
recv := catchPanic(func() {
tree.addRoute(route, nil)
})
if recv == nil {
t.Fatalf("no panic while inserting route with empty wildcard name '%s", route)
}
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestEmptyWildcardName() do?
TestEmptyWildcardName() is a function in the gin codebase.
What does TestEmptyWildcardName() call?
TestEmptyWildcardName() calls 1 function(s): catchPanic.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free