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

Function TestTracks_UnsupportedFormat

apps/cli/internal/cli/tracks_test.go:362–374  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

360}
361
362func TestTracks_UnsupportedFormat(t *testing.T) {
363 tmpDir := createTracksTestTaskFiles(t)
364 resetTracksFlags()
365 tracksFormat = "csv"
366
367 _, err := captureTracksOutput(t, []string{tmpDir})
368 if err == nil {
369 t.Fatal("Expected error for unsupported format")
370 }
371 if !strings.Contains(err.Error(), "unsupported format") {
372 t.Errorf("Expected 'unsupported format' error, got: %v", err)
373 }
374}
375
376func TestTracks_FilterFlag(t *testing.T) {
377 tmpDir := createTracksTestTaskFiles(t)

Callers

nothing calls this directly

Calls 4

resetTracksFlagsFunction · 0.85
captureTracksOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected