(t *testing.T)
| 504 | } |
| 505 | |
| 506 | func TestRunSnapshot_InvalidFormat(t *testing.T) { |
| 507 | tmpDir := createSnapshotTestFiles(t) |
| 508 | resetSnapshotFlags() |
| 509 | snapshotFormat = "invalid" |
| 510 | |
| 511 | _, err := captureSnapshotOutput(t, []string{tmpDir}) |
| 512 | if err == nil { |
| 513 | t.Fatal("expected error for invalid format, got nil") |
| 514 | } |
| 515 | if !strings.Contains(err.Error(), "unsupported format") { |
| 516 | t.Errorf("expected 'unsupported format' error, got: %v", err) |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | func TestRunSnapshot_MarkdownGroupedByStatus(t *testing.T) { |
| 521 | tmpDir := createSnapshotTestFiles(t) |
nothing calls this directly
no test coverage detected