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
  edd20976_a400_ca35_9000_92db9a6d051e["TestTreeInvalidParamsType()"]
  95642d64_cc2a_14f0_a93c_52464b2a60b9["tree_test.go"]
  edd20976_a400_ca35_9000_92db9a6d051e -->|defined in| 95642d64_cc2a_14f0_a93c_52464b2a60b9
  93c1c821_291f_3e71_2ae0_563c40ff3ee5["fakeHandler()"]
  edd20976_a400_ca35_9000_92db9a6d051e -->|calls| 93c1c821_291f_3e71_2ae0_563c40ff3ee5
  e7a2b9cb_792d_4373_e0f6_32e424a8c5db["getSkippedNodes()"]
  edd20976_a400_ca35_9000_92db9a6d051e -->|calls| e7a2b9cb_792d_4373_e0f6_32e424a8c5db
  style edd20976_a400_ca35_9000_92db9a6d051e 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

Defined In

Frequently Asked Questions

What does TestTreeInvalidParamsType() do?
TestTreeInvalidParamsType() is a function in the gin codebase, defined in tree_test.go.
Where is TestTreeInvalidParamsType() defined?
TestTreeInvalidParamsType() is defined in tree_test.go at line 901.
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