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

Function TestDescMaxLen_NegativeDisables

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

Source from the content-addressed store, hash-verified

461}
462
463func TestDescMaxLen_NegativeDisables(t *testing.T) {
464 r := &rule.DescriptionMaxLenRule{}
465 if err := r.Apply(lint.RuleSetting{Argument: -1}); err != nil {
466 t.Fatal(err)
467 }
468 _, ok := r.Validate(&mockCommit{description: "very long description text"})
469 if !ok {
470 t.Error("max=-1 should disable check")
471 }
472}
473
474// --- Footer enum rule ---
475

Callers

nothing calls this directly

Calls 3

ApplyMethod · 0.95
ValidateMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected