(t *testing.T)
| 395 | } |
| 396 | |
| 397 | func 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 | |
| 408 | func TestConfig_GetEnabledRules_DuplicateRules(t *testing.T) { |
| 409 | conf := config.NewDefault() |
nothing calls this directly
no test coverage detected