MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / TestSignedOffBy_NoColon_Missing_Fail

Function TestSignedOffBy_NoColon_Missing_Fail

test/rule_test.go:1234–1243  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1232}
1233
1234func 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
1245func TestSignedOffBy_BadArg(t *testing.T) {
1246 r := &rule.SignedOffByRule{}

Callers

nothing calls this directly

Calls 3

ApplyMethod · 0.95
ValidateMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected