Home / Function/ TestTreeInvalidParamsType() — gin Function Reference

TestTreeInvalidParamsType() — gin Function Reference

Architecture documentation for the TestTreeInvalidParamsType() function in tree_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  57506f91_b69c_cd4c_c8a3_1f44116680e2["TestTreeInvalidParamsType()"]
  6dab8d3e_0986_1500_b06f_6323ea7ce91a["fakeHandler()"]
  57506f91_b69c_cd4c_c8a3_1f44116680e2 -->|calls| 6dab8d3e_0986_1500_b06f_6323ea7ce91a
  3890ddc0_c7b9_b8d1_7ac9_5fc2030c1b8e["getSkippedNodes()"]
  57506f91_b69c_cd4c_c8a3_1f44116680e2 -->|calls| 3890ddc0_c7b9_b8d1_7ac9_5fc2030c1b8e
  style 57506f91_b69c_cd4c_c8a3_1f44116680e2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tree_test.go lines 901–912

func TestTreeInvalidParamsType(t *testing.T) {
	tree := &node{}
	// add a child with wildcard
	route := "/:path"
	tree.addRoute(route, fakeHandler(route))

	// set invalid Params type
	params := make(Params, 0)

	// try to trigger slice bounds out of range with capacity 0
	tree.getValue("/test", &params, getSkippedNodes(), false)
}

Domain

Subdomains

Frequently Asked Questions

What does TestTreeInvalidParamsType() do?
TestTreeInvalidParamsType() is a function in the gin codebase.
What does TestTreeInvalidParamsType() call?
TestTreeInvalidParamsType() 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