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

Function TestTracks_TableFormat

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

Source from the content-addressed store, hash-verified

185}
186
187func TestTracks_TableFormat(t *testing.T) {
188 tmpDir := createTracksTestTaskFiles(t)
189 resetTracksFlags()
190 tracksFormat = "table"
191
192 output, err := captureTracksOutput(t, []string{tmpDir})
193 if err != nil {
194 t.Fatalf("runTracks failed: %v", err)
195 }
196
197 if !strings.Contains(output, "Track") {
198 t.Error("Expected table output to contain 'Track'")
199 }
200 if !strings.Contains(output, "Flexible") {
201 t.Error("Expected table output to contain 'Flexible'")
202 }
203}
204
205func TestTracks_OverlapSameTrack(t *testing.T) {
206 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