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

Function TestNext_TableFormat

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

Source from the content-addressed store, hash-verified

580}
581
582func TestNext_TableFormat(t *testing.T) {
583 tmpDir := createNextTestTaskFiles(t)
584
585 resetNextFlags()
586 nextFormat = "table"
587 nextLimit = 3
588
589 output, err := captureNextOutput(t, []string{tmpDir})
590 if err != nil {
591 t.Fatalf("runNext failed: %v", err)
592 }
593
594 if !strings.Contains(output, "Recommended tasks:") {
595 t.Error("Expected table header 'Recommended tasks:'")
596 }
597 if !strings.Contains(output, "#") && !strings.Contains(output, "ID") {
598 t.Error("Expected table column headers")
599 }
600 if !strings.Contains(output, "Effort") {
601 t.Error("Expected 'Effort' column header in table output")
602 }
603}
604
605func TestNext_NoActionableTasks(t *testing.T) {
606 tmpDir := t.TempDir()

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