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

Function TestHeadMinLen_BadArg

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

Source from the content-addressed store, hash-verified

47}
48
49func TestHeadMinLen_BadArg(t *testing.T) {
50 r := &rule.HeadMinLenRule{}
51 if err := r.Apply(lint.RuleSetting{Argument: "string"}); err == nil {
52 t.Error("expected error for non-int arg")
53 }
54}
55
56func TestHeadMaxLen_Pass(t *testing.T) {
57 r := &rule.HeadMaxLenRule{}

Callers

nothing calls this directly

Calls 2

ApplyMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected