Home / Function/ Benchmark_Utils_getGroupPath() — fiber Function Reference

Benchmark_Utils_getGroupPath() — fiber Function Reference

Architecture documentation for the Benchmark_Utils_getGroupPath() function in helpers_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  d62f42ae_31a1_b245_4b74_21b8371c56c6["Benchmark_Utils_getGroupPath()"]
  c82e3595_b1b8_f596_c097_f26fa40159d1["helpers_test.go"]
  d62f42ae_31a1_b245_4b74_21b8371c56c6 -->|defined in| c82e3595_b1b8_f596_c097_f26fa40159d1
  style d62f42ae_31a1_b245_4b74_21b8371c56c6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

helpers_test.go lines 667–677

func Benchmark_Utils_getGroupPath(b *testing.B) {
	var res string
	b.ReportAllocs()
	for b.Loop() {
		_ = getGroupPath("/v1/long/path/john/doe", "/why/this/name/is/so/awesome")
		_ = getGroupPath("/v1", "/")
		_ = getGroupPath("/v1", "/api")
		res = getGroupPath("/v1", "/api/register/:project")
	}
	require.Equal(b, "/v1/api/register/:project", res)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Benchmark_Utils_getGroupPath() do?
Benchmark_Utils_getGroupPath() is a function in the fiber codebase, defined in helpers_test.go.
Where is Benchmark_Utils_getGroupPath() defined?
Benchmark_Utils_getGroupPath() is defined in helpers_test.go at line 667.

Analyze Your Own Codebase

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

Try Supermodel Free