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

Function TestStatus_Statusline_NoTasks

apps/cli/internal/cli/status_test.go:771–795  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

769}
770
771func TestStatus_Statusline_NoTasks(t *testing.T) {
772 tmpDir := t.TempDir()
773 if err := os.WriteFile(filepath.Join(tmpDir, "001.md"), []byte(`---
774id: "001"
775title: "Done"
776status: completed
777tags: []
778dependencies: []
779---
780`), 0644); err != nil {
781 t.Fatal(err)
782 }
783
784 resetStatusFlags()
785 taskDir = tmpDir
786 statusStatusline = true
787
788 output, err := captureStatusNoArgsOutput(t)
789 if err != nil {
790 t.Fatalf("unexpected error: %v", err)
791 }
792 if output != "" {
793 t.Errorf("expected empty output, got: %q", output)
794 }
795}
796
797func TestStatus_Statusline_LongTitle(t *testing.T) {
798 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 2

resetStatusFlagsFunction · 0.85

Tested by

no test coverage detected