(t *testing.T, patch, want string)
| 433 | } |
| 434 | |
| 435 | func assertDelegatePatch(t *testing.T, patch, want string) { |
| 436 | t.Helper() |
| 437 | for _, part := range []string{"diff --git ", "@@ -1 +1 @@", want} { |
| 438 | if !strings.Contains(patch, part) { |
| 439 | t.Errorf("patch missing %q:\n%s", part, patch) |
| 440 | } |
| 441 | } |
| 442 | if strings.Contains(patch, "\x1b[") { |
| 443 | t.Error("patch contains ANSI color escapes") |
| 444 | } |
| 445 | } |
no test coverage detected