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

Function TestContext_TaskNotFound

apps/cli/internal/cli/context_test.go:239–252  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

237}
238
239func TestContext_TaskNotFound(t *testing.T) {
240 tmpDir := createContextTestFiles(t)
241 resetContextFlags()
242 taskDir = tmpDir
243
244 ctxTaskID = "999"
245 _, err := captureContextOutput(t)
246 if err == nil {
247 t.Fatal("expected error for non-existent task")
248 }
249 if !strings.Contains(err.Error(), "task not found") {
250 t.Errorf("expected 'task not found', got: %v", err)
251 }
252}
253
254func TestContext_MissingFiles(t *testing.T) {
255 tmpDir := createContextTestFiles(t)

Callers

nothing calls this directly

Calls 4

createContextTestFilesFunction · 0.85
resetContextFlagsFunction · 0.85
captureContextOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected