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

Function TestStatus_Blocked

apps/cli/internal/cli/status_test.go:898–909  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

896}
897
898func TestStatus_Blocked(t *testing.T) {
899 tmpDir := createStatusTestFiles(t)
900 resetStatusFlags()
901 taskDir = tmpDir
902
903 // Task 003 depends on 002 which is in-progress (not completed)
904 output := captureStatusOutput(t, "003")
905
906 if !strings.Contains(output, "Blocked: Yes (blocked by: 002)") {
907 t.Errorf("Expected blocked indicator with 002, got:\n%s", output)
908 }
909}
910
911func TestStatus_Unblocked(t *testing.T) {
912 tmpDir := createStatusTestFiles(t)

Callers

nothing calls this directly

Calls 3

createStatusTestFilesFunction · 0.85
resetStatusFlagsFunction · 0.85
captureStatusOutputFunction · 0.85

Tested by

no test coverage detected