Home / Function/ TestCountParams() — gin Function Reference

TestCountParams() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b0fd208b_4b53_3b18_69ef_f2c17546e7f6["TestCountParams()"]
  95642d64_cc2a_14f0_a93c_52464b2a60b9["tree_test.go"]
  b0fd208b_4b53_3b18_69ef_f2c17546e7f6 -->|defined in| 95642d64_cc2a_14f0_a93c_52464b2a60b9
  style b0fd208b_4b53_3b18_69ef_f2c17546e7f6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tree_test.go lines 92–99

func TestCountParams(t *testing.T) {
	if countParams("/path/:param1/static/*catch-all") != 2 {
		t.Fail()
	}
	if countParams(strings.Repeat("/:param", 256)) != 256 {
		t.Fail()
	}
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does TestCountParams() do?
TestCountParams() is a function in the gin codebase, defined in tree_test.go.
Where is TestCountParams() defined?
TestCountParams() is defined in tree_test.go at line 92.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free