(t *testing.T)
| 419 | } |
| 420 | |
| 421 | func 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 | |
| 431 | func TestConfig_SeverityString(t *testing.T) { |
| 432 | tests := []struct { |
nothing calls this directly
no test coverage detected