(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestIgnore_MergedPR(t *testing.T) { |
| 51 | msgs := []string{ |
| 52 | "Merged PR #456: Add new feature", |
| 53 | "Merged PR 789: Fix bug", |
| 54 | "Merged feature-branch in main", |
| 55 | "Merged feature-branch into main", |
| 56 | } |
| 57 | linter := newDefaultLinter(t) |
| 58 | for _, msg := range msgs { |
| 59 | result, err := linter.ParseAndLint(msg) |
| 60 | if err != nil { |
| 61 | t.Fatalf("error for %q: %v", msg, err) |
| 62 | } |
| 63 | if len(result.Issues()) != 0 { |
| 64 | t.Errorf("expected %q to be ignored, got %d issues", msg, len(result.Issues())) |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func TestIgnore_RevertReapply(t *testing.T) { |
| 70 | msgs := []string{ |
nothing calls this directly
no test coverage detected