(t *testing.T)
| 490 | } |
| 491 | |
| 492 | func 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 | |
| 512 | func TestTracks_ScopeFlag_NoMatch(t *testing.T) { |
| 513 | tmpDir := createTracksTestTaskFiles(t) |
nothing calls this directly
no test coverage detected