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

Function TestFooterEnum_EmptyTokenList

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

Source from the content-addressed store, hash-verified

502}
503
504func TestFooterEnum_EmptyTokenList(t *testing.T) {
505 r := &rule.FooterEnumRule{}
506 if err := r.Apply(lint.RuleSetting{Argument: []interface{}{}}); err != nil {
507 t.Fatal(err)
508 }
509 _, ok := r.Validate(&mockCommit{notes: []lint.Note{}})
510 if !ok {
511 t.Error("no notes with empty list should pass")
512 }
513}
514
515// --- Footer type enum rule ---
516

Callers

nothing calls this directly

Calls 3

ApplyMethod · 0.95
ValidateMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected