(t *testing.T)
| 215 | } |
| 216 | |
| 217 | func TestFooterMaxLineLen_Fail(t *testing.T) { |
| 218 | r := &rule.FooterMaxLineLenRule{} |
| 219 | if err := r.Apply(lint.RuleSetting{Argument: 10}); err != nil { |
| 220 | t.Fatal(err) |
| 221 | } |
| 222 | _, ok := r.Validate(&mockCommit{footer: "Fixes: #123456789012345"}) |
| 223 | if ok { |
| 224 | t.Error("footer line > 10 should fail") |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | // --- Type rules --- |
| 229 |