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

Function TestBodyFullStop_NoStop_Pass

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

Source from the content-addressed store, hash-verified

994}
995
996func TestBodyFullStop_NoStop_Pass(t *testing.T) {
997 r := &rule.BodyFullStopRule{}
998 if err := r.Apply(lint.RuleSetting{Argument: "."}); err != nil {
999 t.Fatal(err)
1000 }
1001 _, ok := r.Validate(&mockCommit{body: "This is the body"})
1002 if !ok {
1003 t.Error("body not ending with '.' should pass")
1004 }
1005}
1006
1007func TestBodyFullStop_WithStop_Fail(t *testing.T) {
1008 r := &rule.BodyFullStopRule{}

Callers

nothing calls this directly

Calls 3

ApplyMethod · 0.95
ValidateMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected