(t *testing.T)
| 145 | } |
| 146 | |
| 147 | func TestIgnore_NotIgnored(t *testing.T) { |
| 148 | msgs := []string{ |
| 149 | "merge something random", |
| 150 | "fixup something", |
| 151 | "initial commit", |
| 152 | "just some random text", |
| 153 | } |
| 154 | linter := newDefaultLinter(t) |
| 155 | for _, msg := range msgs { |
| 156 | result, err := linter.ParseAndLint(msg) |
| 157 | if err != nil { |
| 158 | t.Fatalf("error for %q: %v", msg, err) |
| 159 | } |
| 160 | // These should NOT be ignored, should produce issues |
| 161 | if len(result.Issues()) == 0 { |
| 162 | t.Errorf("expected %q to NOT be ignored (should have issues)", msg) |
| 163 | } |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | func TestIgnore_EmptyPatterns_NoSkip(t *testing.T) { |
| 168 | conf := config.NewDefault() |
nothing calls this directly
no test coverage detected