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

Function TestRm_TaskNotFound

apps/cli/internal/cli/rm_test.go:131–144  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

129}
130
131func TestRm_TaskNotFound(t *testing.T) {
132 tmpDir := createRmTestFiles(t)
133 resetRmFlags()
134 taskDir = tmpDir
135 rmForce = true
136
137 _, err := captureRmOutput(t, []string{"999"})
138 if err == nil {
139 t.Fatal("expected error for nonexistent task")
140 }
141 if !strings.Contains(err.Error(), "task not found") {
142 t.Errorf("expected 'task not found' error, got: %v", err)
143 }
144}
145
146func TestRm_InteractiveConfirmYes(t *testing.T) {
147 tmpDir := createRmTestFiles(t)

Callers

nothing calls this directly

Calls 4

createRmTestFilesFunction · 0.85
resetRmFlagsFunction · 0.85
captureRmOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected