MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / TestScopeCharset_Fail

Function TestScopeCharset_Fail

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

Source from the content-addressed store, hash-verified

426}
427
428func TestScopeCharset_Fail(t *testing.T) {
429 r := &rule.ScopeCharsetRule{}
430 if err := r.Apply(lint.RuleSetting{Argument: "abcdefghijklmnopqrstuvwxyz"}); err != nil {
431 t.Fatal(err)
432 }
433 _, ok := r.Validate(&mockCommit{scope: "Auth"})
434 if ok {
435 t.Error("uppercase scope should fail")
436 }
437}
438
439// --- Description length rules ---
440

Callers

nothing calls this directly

Calls 3

ApplyMethod · 0.95
ValidateMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected