(t *testing.T)
| 1016 | } |
| 1017 | |
| 1018 | func TestBodyFullStop_EmptyBody_Pass(t *testing.T) { |
| 1019 | r := &rule.BodyFullStopRule{} |
| 1020 | if err := r.Apply(lint.RuleSetting{Argument: "."}); err != nil { |
| 1021 | t.Fatal(err) |
| 1022 | } |
| 1023 | _, ok := r.Validate(&mockCommit{body: ""}) |
| 1024 | if !ok { |
| 1025 | t.Error("empty body should pass body-full-stop") |
| 1026 | } |
| 1027 | } |
| 1028 | |
| 1029 | func TestDescriptionFullStop_NoStop_Pass(t *testing.T) { |
| 1030 | r := &rule.DescriptionFullStopRule{} |