(t *testing.T)
| 881 | } |
| 882 | |
| 883 | func TestValidateConfig_NoScopes(t *testing.T) { |
| 884 | v := NewValidator(false) |
| 885 | config := &ConfigData{ |
| 886 | Scopes: nil, |
| 887 | TopKeys: []string{"dir", "web"}, |
| 888 | ConfigPath: ".taskmd.yaml", |
| 889 | } |
| 890 | |
| 891 | result := v.ValidateConfig(config) |
| 892 | |
| 893 | if result.Errors != 0 || result.Warnings != 0 { |
| 894 | t.Errorf("Expected no issues when no scopes section, got %d errors, %d warnings", result.Errors, result.Warnings) |
| 895 | } |
| 896 | } |
| 897 | |
| 898 | func TestValidateTouches_ValidReferences(t *testing.T) { |
| 899 | v := NewValidator(false) |
nothing calls this directly
no test coverage detected