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

Function TestRunSnapshot_InvalidFormat

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

Source from the content-addressed store, hash-verified

504}
505
506func 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
520func TestRunSnapshot_MarkdownGroupedByStatus(t *testing.T) {
521 tmpDir := createSnapshotTestFiles(t)

Callers

nothing calls this directly

Calls 4

createSnapshotTestFilesFunction · 0.85
resetSnapshotFlagsFunction · 0.85
captureSnapshotOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected