(t *testing.T)
| 169 | } |
| 170 | |
| 171 | func TestBodyMaxLineLen_EmptyBody(t *testing.T) { |
| 172 | r := &rule.BodyMaxLineLenRule{} |
| 173 | if err := r.Apply(lint.RuleSetting{Argument: 72}); err != nil { |
| 174 | t.Fatal(err) |
| 175 | } |
| 176 | _, ok := r.Validate(&mockCommit{body: ""}) |
| 177 | if !ok { |
| 178 | t.Error("empty body should pass") |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | // --- Footer length rules --- |
| 183 |