Home / Function/ TestRouterGroupInvalidStatic() — gin Function Reference

TestRouterGroupInvalidStatic() — gin Function Reference

Architecture documentation for the TestRouterGroupInvalidStatic() function in routergroup_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  a860bdd3_89a0_9162_f34d_0eb0ea60fa60["TestRouterGroupInvalidStatic()"]
  05f47e3a_87c8_197f_14f5_0e14b25699a8["routergroup_test.go"]
  a860bdd3_89a0_9162_f34d_0eb0ea60fa60 -->|defined in| 05f47e3a_87c8_197f_14f5_0e14b25699a8
  style a860bdd3_89a0_9162_f34d_0eb0ea60fa60 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

routergroup_test.go lines 94–103

func TestRouterGroupInvalidStatic(t *testing.T) {
	router := New()
	assert.Panics(t, func() {
		router.Static("/path/:param", "/")
	})

	assert.Panics(t, func() {
		router.Static("/path/*param", "/")
	})
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does TestRouterGroupInvalidStatic() do?
TestRouterGroupInvalidStatic() is a function in the gin codebase, defined in routergroup_test.go.
Where is TestRouterGroupInvalidStatic() defined?
TestRouterGroupInvalidStatic() is defined in routergroup_test.go at line 94.

Analyze Your Own Codebase

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

Try Supermodel Free