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

Function TestRm_ShowsTaskDetails

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

Source from the content-addressed store, hash-verified

390}
391
392func TestRm_ShowsTaskDetails(t *testing.T) {
393 tmpDir := createRmTestFiles(t)
394 resetRmFlags()
395 taskDir = tmpDir
396 rmDryRun = true
397
398 output, err := captureRmOutput(t, []string{"001"})
399 if err != nil {
400 t.Fatalf("unexpected error: %v", err)
401 }
402
403 if !strings.Contains(output, "001") {
404 t.Errorf("expected task ID in output, got: %s", output)
405 }
406 if !strings.Contains(output, "Setup project") {
407 t.Errorf("expected task title in output, got: %s", output)
408 }
409}

Callers

nothing calls this directly

Calls 3

createRmTestFilesFunction · 0.85
resetRmFlagsFunction · 0.85
captureRmOutputFunction · 0.85

Tested by

no test coverage detected