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

Function TestDescriptionCaseRule_LowerPass

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

Source from the content-addressed store, hash-verified

716}
717
718func TestDescriptionCaseRule_LowerPass(t *testing.T) {
719 r := &rule.DescriptionCaseRule{}
720 if err := r.Apply(lint.RuleSetting{Argument: casing.Lower}); err != nil {
721 t.Fatal(err)
722 }
723 _, ok := r.Validate(&mockCommit{description: "add new feature"})
724 if !ok {
725 t.Error("lowercase description should pass")
726 }
727}
728
729func TestDescriptionCaseRule_Fail(t *testing.T) {
730 r := &rule.DescriptionCaseRule{}

Callers

nothing calls this directly

Calls 3

ApplyMethod · 0.95
ValidateMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected