TestTreeExpandParamsCapacity() — gin Function Reference
Architecture documentation for the TestTreeExpandParamsCapacity() function in tree_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 8f0341fd_f14a_385b_ed71_dd8db5422607["TestTreeExpandParamsCapacity()"] 95642d64_cc2a_14f0_a93c_52464b2a60b9["tree_test.go"] 8f0341fd_f14a_385b_ed71_dd8db5422607 -->|defined in| 95642d64_cc2a_14f0_a93c_52464b2a60b9 93c1c821_291f_3e71_2ae0_563c40ff3ee5["fakeHandler()"] 8f0341fd_f14a_385b_ed71_dd8db5422607 -->|calls| 93c1c821_291f_3e71_2ae0_563c40ff3ee5 e7a2b9cb_792d_4373_e0f6_32e424a8c5db["getSkippedNodes()"] 8f0341fd_f14a_385b_ed71_dd8db5422607 -->|calls| e7a2b9cb_792d_4373_e0f6_32e424a8c5db style 8f0341fd_f14a_385b_ed71_dd8db5422607 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tree_test.go lines 914–940
func TestTreeExpandParamsCapacity(t *testing.T) {
data := []struct {
path string
}{
{"/:path"},
{"/*path"},
}
for _, item := range data {
tree := &node{}
tree.addRoute(item.path, fakeHandler(item.path))
params := make(Params, 0)
value := tree.getValue("/test", ¶ms, getSkippedNodes(), false)
if value.params == nil {
t.Errorf("Expected %s params to be set, but they weren't", item.path)
continue
}
if len(*value.params) != 1 {
t.Errorf("Wrong number of %s params: got %d, want %d",
item.path, len(*value.params), 1)
continue
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestTreeExpandParamsCapacity() do?
TestTreeExpandParamsCapacity() is a function in the gin codebase, defined in tree_test.go.
Where is TestTreeExpandParamsCapacity() defined?
TestTreeExpandParamsCapacity() is defined in tree_test.go at line 914.
What does TestTreeExpandParamsCapacity() call?
TestTreeExpandParamsCapacity() 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