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

Function TestConfig_Validate_UnknownRule

test/config_test.go:137–144  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

135}
136
137func TestConfig_Validate_UnknownRule(t *testing.T) {
138 conf := config.NewDefault()
139 conf.Rules = append(conf.Rules, "nonexistent-rule")
140 errs := config.Validate(conf)
141 if len(errs) == 0 {
142 t.Error("expected validation errors for unknown rule")
143 }
144}
145
146func TestConfig_Validate_InvalidIgnorePattern(t *testing.T) {
147 conf := config.NewDefault()

Callers

nothing calls this directly

Calls 3

NewDefaultFunction · 0.92
ValidateFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected