(t *testing.T)
| 373 | } |
| 374 | |
| 375 | func TestConfig_Parse_NonExistentFile(t *testing.T) { |
| 376 | _, err := config.Parse("/nonexistent/path/commitlint.yaml") |
| 377 | if err == nil { |
| 378 | t.Error("expected error for non-existent config file") |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | func TestConfig_Parse_InvalidYAML(t *testing.T) { |
| 383 | tmpDir := t.TempDir() |