(t *testing.T)
| 1232 | } |
| 1233 | |
| 1234 | func TestSignedOffBy_NoColon_Missing_Fail(t *testing.T) { |
| 1235 | r := &rule.SignedOffByRule{} |
| 1236 | if err := r.Apply(lint.RuleSetting{Argument: "Signed-off-by"}); err != nil { |
| 1237 | t.Fatal(err) |
| 1238 | } |
| 1239 | _, ok := r.Validate(&mockCommit{}) |
| 1240 | if ok { |
| 1241 | t.Error("commit without Signed-off-by note should fail") |
| 1242 | } |
| 1243 | } |
| 1244 | |
| 1245 | func TestSignedOffBy_BadArg(t *testing.T) { |
| 1246 | r := &rule.SignedOffByRule{} |