TestTreeExpandParamsCapacity() — gin Function Reference
Architecture documentation for the TestTreeExpandParamsCapacity() function in tree_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD a9d3c43e_89ab_7933_bf86_4bcd62fe8a4e["TestTreeExpandParamsCapacity()"] 6dab8d3e_0986_1500_b06f_6323ea7ce91a["fakeHandler()"] a9d3c43e_89ab_7933_bf86_4bcd62fe8a4e -->|calls| 6dab8d3e_0986_1500_b06f_6323ea7ce91a 3890ddc0_c7b9_b8d1_7ac9_5fc2030c1b8e["getSkippedNodes()"] a9d3c43e_89ab_7933_bf86_4bcd62fe8a4e -->|calls| 3890ddc0_c7b9_b8d1_7ac9_5fc2030c1b8e style a9d3c43e_89ab_7933_bf86_4bcd62fe8a4e 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
Source
Frequently Asked Questions
What does TestTreeExpandParamsCapacity() do?
TestTreeExpandParamsCapacity() is a function in the gin codebase.
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