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

Function TestBodyFullStop_EmptyBody_Pass

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

Source from the content-addressed store, hash-verified

1016}
1017
1018func TestBodyFullStop_EmptyBody_Pass(t *testing.T) {
1019 r := &rule.BodyFullStopRule{}
1020 if err := r.Apply(lint.RuleSetting{Argument: "."}); err != nil {
1021 t.Fatal(err)
1022 }
1023 _, ok := r.Validate(&mockCommit{body: ""})
1024 if !ok {
1025 t.Error("empty body should pass body-full-stop")
1026 }
1027}
1028
1029func TestDescriptionFullStop_NoStop_Pass(t *testing.T) {
1030 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