(t *testing.T)
| 987 | } |
| 988 | |
| 989 | func TestHeaderFullStop_BadArg(t *testing.T) { |
| 990 | r := &rule.HeaderFullStopRule{} |
| 991 | if err := r.Apply(lint.RuleSetting{Argument: 99}); err == nil { |
| 992 | t.Error("non-string arg should return error") |
| 993 | } |
| 994 | } |
| 995 | |
| 996 | func TestBodyFullStop_NoStop_Pass(t *testing.T) { |
| 997 | r := &rule.BodyFullStopRule{} |