(t *testing.T)
| 994 | } |
| 995 | |
| 996 | func TestBodyFullStop_NoStop_Pass(t *testing.T) { |
| 997 | r := &rule.BodyFullStopRule{} |
| 998 | if err := r.Apply(lint.RuleSetting{Argument: "."}); err != nil { |
| 999 | t.Fatal(err) |
| 1000 | } |
| 1001 | _, ok := r.Validate(&mockCommit{body: "This is the body"}) |
| 1002 | if !ok { |
| 1003 | t.Error("body not ending with '.' should pass") |
| 1004 | } |
| 1005 | } |
| 1006 | |
| 1007 | func TestBodyFullStop_WithStop_Fail(t *testing.T) { |
| 1008 | r := &rule.BodyFullStopRule{} |