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

Function TestHeaderFullStop_BadArg

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

Source from the content-addressed store, hash-verified

987}
988
989func 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
996func TestBodyFullStop_NoStop_Pass(t *testing.T) {
997 r := &rule.BodyFullStopRule{}

Callers

nothing calls this directly

Calls 2

ApplyMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected