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

Function TestDescriptionFullStop_NoStop_Pass

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

Source from the content-addressed store, hash-verified

1027}
1028
1029func TestDescriptionFullStop_NoStop_Pass(t *testing.T) {
1030 r := &rule.DescriptionFullStopRule{}
1031 if err := r.Apply(lint.RuleSetting{Argument: "."}); err != nil {
1032 t.Fatal(err)
1033 }
1034 _, ok := r.Validate(&mockCommit{description: "add new feature"})
1035 if !ok {
1036 t.Error("description not ending with '.' should pass")
1037 }
1038}
1039
1040func TestDescriptionFullStop_WithStop_Fail(t *testing.T) {
1041 r := &rule.DescriptionFullStopRule{}

Callers

nothing calls this directly

Calls 3

ApplyMethod · 0.95
ValidateMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected