(t *testing.T)
| 1243 | } |
| 1244 | |
| 1245 | func TestSignedOffBy_BadArg(t *testing.T) { |
| 1246 | r := &rule.SignedOffByRule{} |
| 1247 | if err := r.Apply(lint.RuleSetting{Argument: 99}); err == nil { |
| 1248 | t.Error("non-string arg should return error") |
| 1249 | } |
| 1250 | } |
| 1251 | |
| 1252 | func TestTrailerExists_Present_Pass(t *testing.T) { |
| 1253 | r := &rule.TrailerExistsRule{} |