(b *testing.B)
| 289 | } |
| 290 | |
| 291 | func BenchmarkTruncate_Long(b *testing.B) { |
| 292 | s := "this is a very very very very very long string that definitely needs truncation" |
| 293 | for b.Loop() { |
| 294 | Truncate(s, 20) |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | func BenchmarkNormalizeWhitespace_NoChange(b *testing.B) { |
| 299 | content := "line1\nline2\nline3\n" |
nothing calls this directly
no test coverage detected