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

Function TestPathCleanLong

path_test.go:126–133  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

124}
125
126func TestPathCleanLong(t *testing.T) {
127 cleanTests := genLongPaths()
128
129 for _, test := range cleanTests {
130 assert.Equal(t, test.result, cleanPath(test.path))
131 assert.Equal(t, test.result, cleanPath(test.result))
132 }
133}
134
135func BenchmarkPathCleanLong(b *testing.B) {
136 cleanTests := genLongPaths()

Callers

nothing calls this directly

Calls 2

genLongPathsFunction · 0.85
cleanPathFunction · 0.85

Tested by

no test coverage detected