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

Function TestProjects_EmptyProjectsList

apps/cli/internal/cli/projects_test.go:98–110  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func TestProjects_EmptyProjectsList(t *testing.T) {
99 resetProjectsFlags()
100 setupGlobalRegistry(t, "projects: []\n")
101
102 _, stderr, err := captureProjectsOutput(t)
103 if err != nil {
104 t.Fatalf("unexpected error: %v", err)
105 }
106
107 if !strings.Contains(stderr, "No projects registered") {
108 t.Errorf("expected 'No projects registered' message, got:\n%s", stderr)
109 }
110}
111
112func TestProjects_ValidProjectsTable(t *testing.T) {
113 resetProjectsFlags()

Callers

nothing calls this directly

Calls 3

resetProjectsFlagsFunction · 0.85
setupGlobalRegistryFunction · 0.85
captureProjectsOutputFunction · 0.85

Tested by

no test coverage detected