MCPcopy Create free account
hub / github.com/driangle/taskmd / TestRunSnapshot_YAMLOutput

Function TestRunSnapshot_YAMLOutput

apps/cli/internal/cli/snapshot_test.go:377–390  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

375}
376
377func 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
392func TestRunSnapshot_MarkdownOutput(t *testing.T) {
393 tmpDir := createSnapshotTestFiles(t)

Callers

nothing calls this directly

Calls 3

createSnapshotTestFilesFunction · 0.85
resetSnapshotFlagsFunction · 0.85
captureSnapshotOutputFunction · 0.85

Tested by

no test coverage detected