Home / Function/ Test_App_Register_TooManyParams_Panic() — fiber Function Reference

Test_App_Register_TooManyParams_Panic() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

path_test.go lines 425–453

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

	// Test registering a route with too many params via app
	t.Run("register_via_Get", func(t *testing.T) {
		t.Parallel()
		app := New()
		route := paramsRoute(t, maxParams+1)

		require.PanicsWithValue(t, "Route '"+route+"' has 31 parameters, which exceeds the maximum of 30", func() {
			app.Get(route, func(c Ctx) error {
				return c.SendString("test")
			})
		})
	})

	// Test registering a route with maxParams works
	t.Run("register_maxParams_works", func(t *testing.T) {
		t.Parallel()
		app := New()
		route := paramsRoute(t, maxParams)

		require.NotPanics(t, func() {
			app.Get(route, func(c Ctx) error {
				return c.SendString("test")
			})
		})
	})
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_App_Register_TooManyParams_Panic() do?
Test_App_Register_TooManyParams_Panic() is a function in the fiber codebase, defined in path_test.go.
Where is Test_App_Register_TooManyParams_Panic() defined?
Test_App_Register_TooManyParams_Panic() is defined in path_test.go at line 425.
What does Test_App_Register_TooManyParams_Panic() call?
Test_App_Register_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