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

Function TestPathClean

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

Source from the content-addressed store, hash-verified

70}
71
72func TestPathClean(t *testing.T) {
73 for _, test := range cleanTests {
74 assert.Equal(t, test.result, cleanPath(test.path))
75 assert.Equal(t, test.result, cleanPath(test.result))
76 }
77}
78
79func TestPathCleanMallocs(t *testing.T) {
80 if testing.Short() {

Callers

nothing calls this directly

Calls 1

cleanPathFunction · 0.85

Tested by

no test coverage detected