(t *testing.T)
| 273 | } |
| 274 | |
| 275 | func TestNormalizeWhitespace_PreservesContent(t *testing.T) { |
| 276 | // Ensure that non-trailing whitespace is preserved |
| 277 | content := "line1 middle spaces\nline2\t\tmiddle\t\ttabs\n" |
| 278 | result := NormalizeWhitespace(content) |
| 279 | |
| 280 | assert.Contains(t, result, "middle spaces", "NormalizeWhitespace should preserve non-trailing spaces inside lines") |
| 281 | assert.Contains(t, result, "middle\t\ttabs", "NormalizeWhitespace should preserve non-trailing tabs inside lines") |
| 282 | } |
| 283 | |
| 284 | func BenchmarkTruncate_Short(b *testing.B) { |
| 285 | s := "short" |
nothing calls this directly
no test coverage detected