(t *testing.T)
| 913 | } |
| 914 | |
| 915 | func TestFooterEmptyRule_EmptyFails(t *testing.T) { |
| 916 | r := &rule.FooterEmptyRule{} |
| 917 | if err := r.Apply(lint.RuleSetting{}); err != nil { |
| 918 | t.Fatal(err) |
| 919 | } |
| 920 | _, ok := r.Validate(&mockCommit{footer: ""}) |
| 921 | if ok { |
| 922 | t.Error("empty footer should fail footer-empty rule") |
| 923 | } |
| 924 | } |
| 925 | |
| 926 | func TestDescriptionEmptyRule_NonEmptyPasses(t *testing.T) { |
| 927 | r := &rule.DescriptionEmptyRule{} |