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

Function TestProjects_NoProjectsRegistered

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

Source from the content-addressed store, hash-verified

82}
83
84func TestProjects_NoProjectsRegistered(t *testing.T) {
85 resetProjectsFlags()
86 setupEmptyGlobalRegistry(t)
87
88 _, stderr, err := captureProjectsOutput(t)
89 if err != nil {
90 t.Fatalf("unexpected error: %v", err)
91 }
92
93 if !strings.Contains(stderr, "No projects registered") {
94 t.Errorf("expected 'No projects registered' message, got:\n%s", stderr)
95 }
96}
97
98func TestProjects_EmptyProjectsList(t *testing.T) {
99 resetProjectsFlags()

Callers

nothing calls this directly

Calls 3

resetProjectsFlagsFunction · 0.85
setupEmptyGlobalRegistryFunction · 0.85
captureProjectsOutputFunction · 0.85

Tested by

no test coverage detected