(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func TestIgnore_InitialCommit(t *testing.T) { |
| 125 | linter := newDefaultLinter(t) |
| 126 | result, err := linter.ParseAndLint("Initial commit") |
| 127 | if err != nil { |
| 128 | t.Fatalf("unexpected error: %v", err) |
| 129 | } |
| 130 | if len(result.Issues()) != 0 { |
| 131 | t.Errorf("expected 'Initial commit' to be ignored, got %d issues", len(result.Issues())) |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | func TestIgnore_MultilineFirstLineMatches(t *testing.T) { |
| 136 | msg := "Merge pull request #100 from org/branch\n\nAdditional body text" |
nothing calls this directly
no test coverage detected