(b *testing.B)
| 133 | } |
| 134 | |
| 135 | func 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 | |
| 147 | func TestRemoveRepeatedChar(t *testing.T) { |
| 148 | testCases := []struct { |
nothing calls this directly
no test coverage detected