(t *testing.T)
| 204 | } |
| 205 | |
| 206 | func TestFooterMaxLineLen_Pass(t *testing.T) { |
| 207 | r := &rule.FooterMaxLineLenRule{} |
| 208 | if err := r.Apply(lint.RuleSetting{Argument: 72}); err != nil { |
| 209 | t.Fatal(err) |
| 210 | } |
| 211 | _, ok := r.Validate(&mockCommit{footer: "Fixes: #123\nReviewed-by: John"}) |
| 212 | if !ok { |
| 213 | t.Error("footer lines <= 72 should pass") |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | func TestFooterMaxLineLen_Fail(t *testing.T) { |
| 218 | r := &rule.FooterMaxLineLenRule{} |