(b *testing.B)
| 282 | } |
| 283 | |
| 284 | func BenchmarkTruncate_Short(b *testing.B) { |
| 285 | s := "short" |
| 286 | for b.Loop() { |
| 287 | Truncate(s, 10) |
| 288 | } |
| 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" |
nothing calls this directly
no test coverage detected