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

Function TestTracks_ScopeFlag_Table

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

Source from the content-addressed store, hash-verified

490}
491
492func TestTracks_ScopeFlag_Table(t *testing.T) {
493 tmpDir := createTracksTestTaskFiles(t)
494 resetTracksFlags()
495 tracksFormat = "table"
496 tracksScope = "scope-a"
497
498 output, err := captureTracksOutput(t, []string{tmpDir})
499 if err != nil {
500 t.Fatalf("runTracks failed: %v", err)
501 }
502
503 if !strings.Contains(output, "Track") {
504 t.Error("Expected table output to contain 'Track'")
505 }
506 // Should NOT contain flexible section
507 if strings.Contains(output, "Flexible") {
508 t.Error("Scope mode should not show Flexible section")
509 }
510}
511
512func TestTracks_ScopeFlag_NoMatch(t *testing.T) {
513 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