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

Function TestConfig_GetEnabledRules_UnknownRule

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

Source from the content-addressed store, hash-verified

419}
420
421func TestConfig_GetEnabledRules_UnknownRule(t *testing.T) {
422 conf := config.NewDefault()
423 conf.Rules = []string{"nonexistent-rule"}
424
425 _, err := config.GetEnabledRules(conf)
426 if err == nil {
427 t.Error("expected error for unknown rule")
428 }
429}
430
431func TestConfig_SeverityString(t *testing.T) {
432 tests := []struct {

Callers

nothing calls this directly

Calls 3

NewDefaultFunction · 0.92
GetEnabledRulesFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected