Home / Function/ Test_Path_matchParams() — fiber Function Reference

Test_Path_matchParams() — fiber Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1706cb33_4e1b_abdf_d2f2_23a89965802a["Test_Path_matchParams()"]
  3c817cfc_3291_59ba_a2f8_291f66a9b0a1["path_test.go"]
  1706cb33_4e1b_abdf_d2f2_23a89965802a -->|defined in| 3c817cfc_3291_59ba_a2f8_291f66a9b0a1
  style 1706cb33_4e1b_abdf_d2f2_23a89965802a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

path_test.go lines 139–155

func Test_Path_matchParams(t *testing.T) {
	t.Parallel()
	var ctxParams [maxParams]string
	testCaseFn := func(testCollection routeCaseCollection) {
		parser := parseRoute(testCollection.pattern)
		for _, c := range testCollection.testCases {
			match := parser.getMatch(c.url, c.url, &ctxParams, c.partialCheck)
			require.Equal(t, c.match, match, "route: '%s', url: '%s'", testCollection.pattern, c.url)
			if match && len(c.params) > 0 {
				require.Equal(t, c.params[0:len(c.params)], ctxParams[0:len(c.params)], "route: '%s', url: '%s'", testCollection.pattern, c.url)
			}
		}
	}
	for _, testCaseCollection := range routeTestCases {
		testCaseFn(testCaseCollection)
	}
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_Path_matchParams() do?
Test_Path_matchParams() is a function in the fiber codebase, defined in path_test.go.
Where is Test_Path_matchParams() defined?
Test_Path_matchParams() is defined in path_test.go at line 139.

Analyze Your Own Codebase

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

Try Supermodel Free