(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestLoad_MissingFile(t *testing.T) { |
| 13 | cfg := Load("/nonexistent/path") |
| 14 | if len(cfg.Only) != 0 || len(cfg.Exclude) != 0 || cfg.Depth != 0 { |
| 15 | t.Errorf("expected zero-value config for missing file, got %+v", cfg) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func TestLoad_ValidConfig(t *testing.T) { |
| 20 | dir := t.TempDir() |