(t *testing.T)
| 413 | } |
| 414 | |
| 415 | func TestRunValidate_InvalidFormat(t *testing.T) { |
| 416 | tmpDir := createValidateTestFiles(t) |
| 417 | resetValidateFlags() |
| 418 | validateFormat = "invalid" |
| 419 | |
| 420 | _, err := captureValidateOutput(t, []string{tmpDir}) |
| 421 | if err == nil { |
| 422 | t.Fatal("expected error for invalid format, got nil") |
| 423 | } |
| 424 | if !strings.Contains(err.Error(), "unsupported format") { |
| 425 | t.Errorf("expected 'unsupported format' error, got: %v", err) |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | func TestRunValidate_StrictMode_NoWarnings(t *testing.T) { |
| 430 | // Valid tasks with ALL optional fields filled — strict mode should produce no warnings |
nothing calls this directly
no test coverage detected