(t *testing.T)
| 359 | } |
| 360 | |
| 361 | func TestParseDiff_Empty(t *testing.T) { |
| 362 | t.Parallel() |
| 363 | parsed := ParseDiff("") |
| 364 | if parsed.Binary { |
| 365 | t.Error("empty should not be binary") |
| 366 | } |
| 367 | if len(parsed.Lines) != 0 { |
| 368 | t.Errorf("expected 0 lines, got %d", len(parsed.Lines)) |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | func TestParseDiff_Truncation(t *testing.T) { |
| 373 | t.Parallel() |
nothing calls this directly
no test coverage detected