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

Function TestFooterEmptyRule_NonEmptyPasses

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

Source from the content-addressed store, hash-verified

902}
903
904func TestFooterEmptyRule_NonEmptyPasses(t *testing.T) {
905 r := &rule.FooterEmptyRule{}
906 if err := r.Apply(lint.RuleSetting{}); err != nil {
907 t.Fatal(err)
908 }
909 _, ok := r.Validate(&mockCommit{footer: "Fixes: #123"})
910 if !ok {
911 t.Error("non-empty footer should pass footer-empty rule")
912 }
913}
914
915func TestFooterEmptyRule_EmptyFails(t *testing.T) {
916 r := &rule.FooterEmptyRule{}

Callers

nothing calls this directly

Calls 3

ApplyMethod · 0.95
ValidateMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected