MCPcopy
hub / github.com/gin-gonic/gin / BenchmarkPathClean

Function BenchmarkPathClean

path_test.go:94–102  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

92}
93
94func BenchmarkPathClean(b *testing.B) {
95 b.ReportAllocs()
96
97 for b.Loop() {
98 for _, test := range cleanTests {
99 cleanPath(test.path)
100 }
101 }
102}
103
104func genLongPaths() (testPaths []cleanPathTest) {
105 for i := 1; i <= 1234; i++ {

Callers

nothing calls this directly

Calls 1

cleanPathFunction · 0.85

Tested by

no test coverage detected