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

Function TestConfig_GetEnabledRules

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

Source from the content-addressed store, hash-verified

395}
396
397func TestConfig_GetEnabledRules(t *testing.T) {
398 conf := config.NewDefault()
399 rules, err := config.GetEnabledRules(conf)
400 if err != nil {
401 t.Fatalf("unexpected error: %v", err)
402 }
403 if len(rules) != len(conf.Rules) {
404 t.Errorf("expected %d rules, got %d", len(conf.Rules), len(rules))
405 }
406}
407
408func TestConfig_GetEnabledRules_DuplicateRules(t *testing.T) {
409 conf := config.NewDefault()

Callers

nothing calls this directly

Calls 2

NewDefaultFunction · 0.92
GetEnabledRulesFunction · 0.92

Tested by

no test coverage detected