(t *testing.T)
| 375 | } |
| 376 | |
| 377 | func TestRunSnapshot_YAMLOutput(t *testing.T) { |
| 378 | tmpDir := createSnapshotTestFiles(t) |
| 379 | resetSnapshotFlags() |
| 380 | snapshotFormat = "yaml" |
| 381 | |
| 382 | output, err := captureSnapshotOutput(t, []string{tmpDir}) |
| 383 | if err != nil { |
| 384 | t.Fatalf("runSnapshot failed: %v", err) |
| 385 | } |
| 386 | |
| 387 | if !strings.Contains(output, "id:") || !strings.Contains(output, "title:") { |
| 388 | t.Errorf("YAML output missing expected fields:\n%s", output) |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | func TestRunSnapshot_MarkdownOutput(t *testing.T) { |
| 393 | tmpDir := createSnapshotTestFiles(t) |
nothing calls this directly
no test coverage detected