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

Function TestNext_UnsupportedFormat

apps/cli/internal/cli/next_test.go:502–516  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

500}
501
502func TestNext_UnsupportedFormat(t *testing.T) {
503 tmpDir := createNextTestTaskFiles(t)
504
505 resetNextFlags()
506 nextFormat = "csv"
507
508 _, err := captureNextOutput(t, []string{tmpDir})
509 if err == nil {
510 t.Fatal("Expected error for unsupported format")
511 }
512
513 if !strings.Contains(err.Error(), "unsupported format") {
514 t.Errorf("Expected 'unsupported format' error, got: %v", err)
515 }
516}
517
518func TestNext_JSONFormat(t *testing.T) {
519 tmpDir := createNextTestTaskFiles(t)

Callers

nothing calls this directly

Calls 4

createNextTestTaskFilesFunction · 0.85
resetNextFlagsFunction · 0.85
captureNextOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected