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

Function BenchmarkPathCleanLong

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

Source from the content-addressed store, hash-verified

133}
134
135func BenchmarkPathCleanLong(b *testing.B) {
136 cleanTests := genLongPaths()
137
138 b.ReportAllocs()
139
140 for b.Loop() {
141 for _, test := range cleanTests {
142 cleanPath(test.path)
143 }
144 }
145}
146
147func TestRemoveRepeatedChar(t *testing.T) {
148 testCases := []struct {

Callers

nothing calls this directly

Calls 2

genLongPathsFunction · 0.85
cleanPathFunction · 0.85

Tested by

no test coverage detected