Home / Function/ Test_Route_TooManyParams_Panic() — fiber Function Reference

Test_Route_TooManyParams_Panic() — fiber Function Reference

Architecture documentation for the Test_Route_TooManyParams_Panic() function in path_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  ea6b6765_04d9_1077_81df_947136949208["Test_Route_TooManyParams_Panic()"]
  3c817cfc_3291_59ba_a2f8_291f66a9b0a1["path_test.go"]
  ea6b6765_04d9_1077_81df_947136949208 -->|defined in| 3c817cfc_3291_59ba_a2f8_291f66a9b0a1
  10762c71_8b07_ec41_70d6_648dfd23e7d0["paramsRoute()"]
  ea6b6765_04d9_1077_81df_947136949208 -->|calls| 10762c71_8b07_ec41_70d6_648dfd23e7d0
  style ea6b6765_04d9_1077_81df_947136949208 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

path_test.go lines 394–423

func Test_Route_TooManyParams_Panic(t *testing.T) {
	t.Parallel()

	// Test with exactly maxParams (30) - should work
	t.Run("exactly_maxParams", func(t *testing.T) {
		t.Parallel()
		route := paramsRoute(t, maxParams)
		require.NotPanics(t, func() {
			parseRoute(route)
		})
	})

	// Test with maxParams + 1 (31) - should panic
	t.Run("maxParams_plus_one", func(t *testing.T) {
		t.Parallel()
		route := paramsRoute(t, maxParams+1)
		require.PanicsWithValue(t, "Route '"+route+"' has 31 parameters, which exceeds the maximum of 30", func() {
			parseRoute(route)
		})
	})

	// Test with 35 params - should panic
	t.Run("35_params", func(t *testing.T) {
		t.Parallel()
		route := paramsRoute(t, maxParams+5)
		require.PanicsWithValue(t, "Route '"+route+"' has 35 parameters, which exceeds the maximum of 30", func() {
			parseRoute(route)
		})
	})
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_Route_TooManyParams_Panic() do?
Test_Route_TooManyParams_Panic() is a function in the fiber codebase, defined in path_test.go.
Where is Test_Route_TooManyParams_Panic() defined?
Test_Route_TooManyParams_Panic() is defined in path_test.go at line 394.
What does Test_Route_TooManyParams_Panic() call?
Test_Route_TooManyParams_Panic() calls 1 function(s): paramsRoute.

Analyze Your Own Codebase

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

Try Supermodel Free