(b *testing.B)
| 160 | } |
| 161 | |
| 162 | func BenchmarkTruncate(b *testing.B) { |
| 163 | s := "this is a very long string that needs to be truncated for testing purposes" |
| 164 | for b.Loop() { |
| 165 | Truncate(s, 30) |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | func BenchmarkNormalizeWhitespace(b *testing.B) { |
| 170 | content := "line1 \nline2\t\nline3 \t\nline4\n\n" |
nothing calls this directly
no test coverage detected