MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / TestSignedOffBy_BadArg

Function TestSignedOffBy_BadArg

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

Source from the content-addressed store, hash-verified

1243}
1244
1245func 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
1252func TestTrailerExists_Present_Pass(t *testing.T) {
1253 r := &rule.TrailerExistsRule{}

Callers

nothing calls this directly

Calls 2

ApplyMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected