(t *testing.T)
| 332 | } |
| 333 | |
| 334 | func TestIgnore_IgnoredResultHasNoIssues(t *testing.T) { |
| 335 | linter := newDefaultLinter(t) |
| 336 | msg := "Merge pull request #42 from org/feature" |
| 337 | result, err := linter.ParseAndLint(msg) |
| 338 | if err != nil { |
| 339 | t.Fatalf("unexpected error: %v", err) |
| 340 | } |
| 341 | if result.Input() != msg { |
| 342 | t.Errorf("expected input preserved, got %q", result.Input()) |
| 343 | } |
| 344 | if len(result.Issues()) != 0 { |
| 345 | t.Errorf("expected no issues for ignored commit, got %d", len(result.Issues())) |
| 346 | } |
| 347 | } |
nothing calls this directly
no test coverage detected