(t *testing.T)
| 87 | } |
| 88 | |
| 89 | func TestIgnore_FixupSquashAmend(t *testing.T) { |
| 90 | msgs := []string{ |
| 91 | "fixup! feat: add something", |
| 92 | "squash! fix: repair something", |
| 93 | "amend! chore: update deps", |
| 94 | } |
| 95 | linter := newDefaultLinter(t) |
| 96 | for _, msg := range msgs { |
| 97 | result, err := linter.ParseAndLint(msg) |
| 98 | if err != nil { |
| 99 | t.Fatalf("error for %q: %v", msg, err) |
| 100 | } |
| 101 | if len(result.Issues()) != 0 { |
| 102 | t.Errorf("expected %q to be ignored, got %d issues", msg, len(result.Issues())) |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func TestIgnore_AutomaticMerge(t *testing.T) { |
| 108 | msgs := []string{ |
nothing calls this directly
no test coverage detected