(t *testing.T)
| 133 | } |
| 134 | |
| 135 | func TestIgnore_MultilineFirstLineMatches(t *testing.T) { |
| 136 | msg := "Merge pull request #100 from org/branch\n\nAdditional body text" |
| 137 | linter := newDefaultLinter(t) |
| 138 | result, err := linter.ParseAndLint(msg) |
| 139 | if err != nil { |
| 140 | t.Fatalf("unexpected error: %v", err) |
| 141 | } |
| 142 | if len(result.Issues()) != 0 { |
| 143 | t.Errorf("expected multiline merge to be ignored, got %d issues", len(result.Issues())) |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | func TestIgnore_NotIgnored(t *testing.T) { |
| 148 | msgs := []string{ |
nothing calls this directly
no test coverage detected